How to make shortcuts for YaST and Sysconfig Editor?

Though

yast

and

/etc/sysconfig editor

work when ran from command line, shortcuts with these commands don’t work. I make shortcuts in Configure Desktop → Shortcuts and Gestures → Custom Shortcuts.

> work when ran from command line, shortcuts with these commands don’t
> work.

what do you mean when you write “shortcut”?

are you wanting to place an icon on your desktop (or panel) to launch a
application (like YaST)?

if so, please state the operating systems and version you are using as
well as the desktop environment and version (since each has a different
method of achieving what you want)…


DD
openSUSE®, the “German Engineered Automobiles” of operating systems!

It’s openSUSE 12.1 AMD64 and KDE 4.7.2.
By “shortcut” I mean a key combination. For instance, I’d like to use Meta+Y shortcut to run YaST.

When I run* /etc/sysconfig editor *from the command line:

henk@boven:~> /etc/sysconfig editor
bash: /etc/sysconfig: is een map
henk@boven:~> 

Now you say it “works”. Of course it does. But I doubt that this working is the working you are after.

And when I look in my Kmenu (right click on the green ball and then Configure programs and then look for YaST) the command that is executed when one starts YaST via the Kmenu is:

/usr/bin/xdg-su -c /sbin/yast2

It may be cleverer to use the same.

Thanks for the valuable Kmenu tip, Hank. I didn’t find Sysconfig Editor in “Applications” section of Kmenu, but I found it using “Search” and made a desktop shortcut to it. Then I copied the command from this shortcut to my own. Here it is:

xdg-su -c "/sbin/yast2 sysconfig"

On Thu, 24 Nov 2011 19:26:02 +0530, hcvv <hcvv@no-mx.forums.opensuse.org>
wrote:

>
> When I run- /etc/sysconfig editor -from the command line:
>
> Code:
> --------------------
> henk@boven:~> /etc/sysconfig editor
> bash: /etc/sysconfig: is een map
> henk@boven:~>
> --------------------
>
> Now you say it “works”. Of course it does. But I doubt that this
> working is the working you are after.
>
> And when I look in my Kmenu (right click on the green ball and then
> Configure programs and then look for YaST) the command that is executed
> when one starts YaST via the Kmenu is:
>
> Code:
> --------------------
> /usr/bin/xdg-su -c /sbin/yast2
> --------------------
>
> It may be cleverer to use the same.
>

you can find shortcuts to most installed programs, including yast & co,
under /usr/share/applications. yast has it’s own subfolder, as have kde4
programs. these directories contain desktop shortcuts that can be copied
to your desktop (or whichever folder you chose). most yast shortcuts may
need to have "kdesu " prefixed to the application they call, in order to
start with system admin. (root) privileges.


phani.

Yes, because this onee of the functions of yast. There are many more. See:

man yast

and you can make “shortcuts” to any one of them. I rahter stick to simply clicking on the YaST icon in my panel.

Thanks phani. It helps very much.

On 11/24/2011 12:16 PM, Wayra wrote:
> By “shortcut” I mean a key combination. For instance, I’d like to use
> Meta+Y shortcut to run YaST.

yet all the answers you got while i was away was for how to make an icon
to click on!! and you seem happy with the answers!!

color me confused. very!!!


DD

My assumption is you miss something crucial. What his is about is what command to use to start the applications wanted.
It does not matter if this command is then condifured in some menu-item or icon, or coupled to a key-combination. The OP likes key-combinations and knows very well how to configure them. But he lacked the knowledge of which commands to use. What we basicaly did is show where he can find the commands as used in the menu-items/icons. He can now happily copy them for his own usage in the key-combinations.

DenverD
Yes, I needed to know the commands, which I found in the icons. Henk’s explanation is correct. Excuse my English if it was too poor.

> Excuse my English if it was too poor.

no, i think you are a better writer than i am a reader!

(thanks to both you and Henk for your contributions to free and open
software!)


DD