You are not logged in.
Hi all,
I'm using i3 with dmenu_run as my application launcher.
If I'm not mistaken, every executable that's in my PATH should show up there.
However, my Sublime Text 3 executable (which is on a mounted HDD in /media/data/...) doesn't.
I've checked that the path to that executable is in the PATH env variable. The chmod of the executable is:
[fabian@desktop sublime_text_3]$ ls -l sublime_text
-rwxrwxrwx 1 root root 5173248 Aug 27 05:50 sublime_text
Does anyone know what's going wrong?
Thanks,
Fabian.
Last edited by Dunkit (2015-02-16 12:35:57)
Offline
Offline
Thanks for the tip, but unfortunately nothing changed...
Offline
Does the app start from a home terminal? You say it is in your $PATH but supply no evidence
Offline
Yeah, that works fine...
[fabian@desktop ~]$ which sublime_text
/media/data/Downloads/sublime_text_3/sublime_text
Offline
True point in two ways:
1) Yay, that works!
2) Yeah, it's ugly...
But thanks, it does the job for now!
Any other suggestions what might be causing this issue?
Offline
Yeah, that works fine...
[fabian@desktop ~]$ which sublime_text /media/data/Downloads/sublime_text_3/sublime_text
Since it's still not clear how you set your PATH: if you run dmenu_run from that same interactive shell, does it show sublime_text?
Offline
Since it's still not clear how you set your PATH: if you run dmenu_run from that same interactive shell, does it show sublime_text?
I set the PATH in my .bashrc, but I've also tried .xinitrc and .bash_profile with no difference in the result. But we're getting closer to the problem: running
echo $PATH > /tmp/path
in dmenu revealed that the PATH variable dmenu_run has does not change no matter where I export PATH.
Running dmenu_run from a terminal with the correct PATH variable indeed shows that dmenu_run then knows about sublime_text.
So the question is where do I have to export the PATH variable so that dmenu_run has the correct PATH right away?!
Last edited by Dunkit (2015-02-16 11:53:48)
Offline
So the question is where do I have to export the PATH variable so that dmenu_run has the correct PATH right away?!
You normally start dmenu_run through i3 with some keybinding, right? How do you start i3? (1) with a DM or (2) (auto)login to your shell and then startx? For (1) it depends on the DM, for (2) the shell (bash?) is started as a login shell and the .(bash_)profile should be read (but then .xinitrc is executed where i3 gets started, so exporting PATH there should also do the trick).
Last edited by Raynman (2015-02-16 12:25:56)
Offline
Thanks, I got it:
I'm using gdm so I created a ~/.xprofile file exporting the correct path!
But I'm not quite sure if I prefer that over the symlink method, yet. Or I might install Sublime Text somewhere else, I'll have to check what's the nicest solution for me...
Thanks again!
Offline
This is somewhat necro but i found out something that might be useful to future user concerning dmenu behavior.
If you $PATH contains
~/.bin
dmenu will NOT check into your home's .bin folder.
Instead, remove the previous from your path and change it for
/home/<your username>/.bin
Hopefully this will help future users who find this thread with google.
Enjoy!
ThinkPad P16s AMD / KDE
Offline