2

Similar as asked here, I've been trying to understand how to include some paths to be reached during Run command dialog search in a GNOME environment.

In my ~/.bashrc I've add some directories in my PATH and consequently I'm able to run some scripts they contain through an interactive shell section. However it's not enough to run them in Run command dialog.

How could I set it up?

artu-hnrq
  • 297

2 Answers2

2

Using PATH variable is a solution, however, you set it in the wrong place. I suggest you read this thread. The ~/.bashrc file is loaded only when bash is started. You're probably looking for ~/.profile or ~/.xprofile. Depends on your system configuration.

Another solution would be creating a symlink to your executable file in one of the directories already present in your PATH variable.

BlueManCZ
  • 1,753
  • 1
  • 13
  • 31
  • 1
    Pretty nice, Blue! The (linked answer](https://stackoverflow.com/a/26962251/2989289) clarified a lot my doubts – artu-hnrq Apr 08 '20 at 02:04
0

The run dialog will not read ~/.bashrc. And that is not where it should be. It should be in ~/.profile. And I would think that will work.

  • Well, my ~/.profile sources my ~/.bashrc, but the desired scripts still not found by run command dialog. I just made some tests managing PATH in ~/.profile but without success, so I suppose there's something more required – artu-hnrq Apr 07 '20 at 22:15