Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In my .bashrc file I have defined PATH variable, but it seems it's not validated by desktop launchers

Where should I define PATH variable so that launchers can pick it up?

share|improve this question
    
After installing lxde every icon in bin folder is included in gnome shell menu and it became ugly and useless answer of this qustion may help me too :) –  Tachyons Feb 13 '12 at 3:07
add comment

2 Answers

The PATH set in .bashrc is only called when you open a new instance of bash (i.e. opening a gnome-terminal. In the .desktop files, I believe it's best to just include the entire path to whichever program you're launching, i.e. /usr/bin/program-to-launch

share|improve this answer
    
Thanks, but I know that already. Question is where should I define PATH variable so that it works for launchers –  zetah Feb 13 '12 at 3:39
add comment

PATH variable can be defined in ~/.profile file, instead ~/.bashrc so that it will be available to launchers

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.