Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I set the $PATH as used in the KMenu? I tried setting it in all the usual places (/etc/profile ~/.bash_profile /etc/X11/Xsession /etc/kde/kdm/kdmrc).
have you tried ~/.bashrc?
it depends on your system, on my system it is the above mentioned one. if it is not there, you can attack the current systems $PATH, no matter, where it is set.
"export PATH=/<whateveryouwant>:$PATH"
should do the trick.
[CODE]
/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin:/usr/games:/home/michael/bin
[\/CODE]
...but I know KDE isn't using this, because the programs in /usr/local aren't being used in favor of /usr.
[CODE]
/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin:/usr/games:/home/michael/bin
[\/CODE]
...but I know KDE isn't using this, because the programs in /usr/local aren't being used in favor of /usr.
Are you saying that bash will use something in /usr rather that something in /usr/local??? My system does not have anything in /usr--only directories.
By definition, the system uses the path specified in $PATH. Note that $PATH can be different for different users. To check root's path, do "su -" to put you in root's environment, then echo $PATH.
Are you saying that bash will use something in /usr rather that something in /usr/local??? My system does not have anything in /usr--only directories.
No. I meant /usr/bin and /usr/local/bin
Quote:
By definition, the system uses the path specified in $PATH. Note that $PATH can be different for different users. To check root's path, do "su -" to put you in root's environment, then echo $PATH.
su passes the regular users environment to root's shell.
no, you forgot the "su -", that's important, so that nothing is passed from the regular user. but just as info.
back to your question. what happens, if you link e.g. gimp to /usr/local/bin, as it is described on kde-apps.org, and you do "which gimp"?
Sounds like you need to edit the Kde menu to edit the path to the executable. The application is kmenuedit. It's GUI and you need root authority to edit the menu.
The sequence goes like this.
1) as normal user, from the command line, issue the command 'xhost +localhost'.
2) 'su -' to su to root with the root environment.
3) kmenuedit. That starts the menu editor. On the left side of the dialogue box is the menu tree. On the right are the properties you can edit.
Navigate through the menu until you find the Gimp. Click on it to select it. On the left, edit the 'Command' field. If it only shows the executable name 'gimp', then add the path to the executable you want to run to the left end (i.e. change gimp to /usr/local/bin/gimp, or wherever the executable is located).
Don't know if this is handled different under Gentoo, but it is not necessary to edit the Kmenu as root.
Simply click with the right-button on the menu, click on kmenuedit or something like that( don't know the english translation for that) and edit the entry for the program, like my previous spreaker did.
Sorry, but i don't think, that you need to edit it as root, that's not necessary and not the best to do. Simply edit it as your normal user. I don't think that this is handled different on Fedora than on other systems.
Greetings,
Ingo
EDIT: Please delete this post, as i didn't know my previous post would be visible...
Last edited by Neverendingo; 06-25-2007 at 03:39 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.