Results 1 to 6 of 6

Thread: launch yast2 software management from desktop shortcut

  1. #1
    Join Date
    Jun 2008
    Location
    NZ
    Posts
    1,559

    Default launch yast2 software management from desktop shortcut

    I'm trying to create a desktop shortcut to launch yast 2 software management

    using
    Code:
    /usr/bin/xdg-su -c /sbin/yast2
    works to launch the entire yast module

    however
    Code:
    /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

  2. #2

    Default Re: launch yast2 software management from desktop shortcut

    Quote Originally Posted by farcusnz View Post
    I'm obviously missing something.
    Quotes, I suppose.

    The openSUSE 13.2 menu entry runs this:
    Code:
    xdg-su -c '/sbin/yast2 sw_single'

  3. #3
    Join Date
    Jun 2008
    Location
    NZ
    Posts
    1,559

    Default Re: launch yast2 software management from desktop shortcut

    Quote Originally Posted by wolfi323 View Post
    Quotes, I suppose.

    The openSUSE 13.2 menu entry runs this:
    Code:
    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.

  4. #4

    Default Re: launch yast2 software management from desktop shortcut

    Quote Originally Posted by farcusnz View Post
    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:
    Code:
    [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)
    Last edited by wolfi323; 04-Nov-2015 at 08:01.

  5. #5
    Join Date
    Jun 2008
    Location
    NZ
    Posts
    1,559

    Default Re: launch yast2 software management from desktop shortcut

    Quote Originally Posted by wolfi323 View Post
    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:
    Code:
    [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'

  6. #6

    Default Re: launch yast2 software management from desktop shortcut

    Quote Originally Posted by farcusnz View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •