Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to set dmenu's $PATH (especially in LightDM)

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
confuseling
Posts: 2121
Joined: 2009-10-21 01:03

How to set dmenu's $PATH (especially in LightDM)

#1 Post by confuseling »

(edit - heavily revised after a bit more research / head scratching)

This has been driving me nutty for ages.

dmenu_run uses the $SHELL's environment to execute commands through the $SHELL.

So how to add something to the path it sees depends on what your login shell is set to. It seems to also depend on how you log in to the system, in a way I really don't understand (any insight is welcome if you do...).

Still, this seems to be working for several systems.

If it's bash (the default), ~/.bashrc is a likely candidate. Add something like

Code: Select all

export PATH="$HOME/mybinaries:$PATH"
If it's zsh, edit ~/.zshenv to include

Code: Select all

typeset -U path
path=(~/mybinaries $path)
If all else fails (and it seems to at least sometimes with Zsh and LightDM), adding the bash example to ~/.xsessionrc can work.

Whichever your method, you may need to delete ~/cache/dmenu_run (~/.dmenu_cache in older versions) and log out and back in again.

Credit to this page https://faq.i3wm.org/question/2483/howt ... ightdm-i3/ for the ~/.xsessionrc trick, and the Arch wiki for the right Zsh syntax.
The Forum's search box is terrible. Use site specific search, e.g.
https://www.google.com/search?q=site%3A ... terms+here

Post Reply