Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

share|improve this answer

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

Your Answer


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.