I’m trying to create a desktop shortcut to launch yast 2 software management
using
/usr/bin/xdg-su -c /sbin/yast2
works to launch the entire yast module
however
/usr/bin/xdg-su -c /sbin/yast2 sw_single
fails to launch anything.
I’m obviously missing something.
What is the correct code to launch yast2 software from a user account and be given the admin/root prompt?
Thanks
Quotes, I suppose.
The openSUSE 13.2 menu entry runs this:
xdg-su -c '/sbin/yast2 sw_single'
hmmmm . . . still no luck with the above command.
getting . . .
Unable to run the command specified. The file or folder /home/~/xdg-su -c ‘/sbin/yast2 sw_single’ does not exist.
Where does the /home/~/ come from?
Of course this doesn’t exist.
It should either be xdg-su or /usr/bin/xdg-su.
How exactly are you trying to create your desktop shortcut?
The 13.2 .desktop file looks like this:
[Desktop Entry]
X-SuSE-translate=true
Encoding=UTF-8
Name=Install/Remove Software
Exec=xdg-su -c '/sbin/yast2 sw_single'
Icon=package-manager-icon
Terminal=false
Type=Application
Categories=System;PackageManager;X-SuSE-ControlCenter-System;
NotShowIn=KDE;GNOME;MATE;
StartupNotify=true
Create a file something.desktop in your ~/Desktop/ folder and it should work… (although you should probably leave out the “NotShowIn” line)
awesome - that worked.
I was mistakenly trying to make a ‘link to a location’
Ah.
For an “application launcher” you should use “Link to Application…”, and specify the command to run on the “Application” tab.