How to set path for dmenu_run with Debian standard i3 startup
I'm using a standard debian system with xdm and i3. The stock startup procedure for Xsessions on Debian is that if no ~/.xsessionrc
or ~/.xsession
exists, it should use x-window-manager
which debian symlinks to i3
.
The relevant lines in /etc/X11/Xsession.d/50x11-common_determine-startup
are:
# If there is still nothing to use for a startup program, try the system
# default session manager, window manager, and terminal emulator.
if [ -z "$STARTUP" ]; then
if [ -x /usr/bin/x-session-manager ]; then
STARTUP=x-session-manager
elif [ -x /usr/bin/x-window-manager ]; then
STARTUP=x-window-manager
elif [ -x /usr/bin/x-terminal-emulator ]; then
STARTUP=x-terminal-emulator
fi
fi
`
I wish to add ~/bin
to my PATH
. Of course, adding the PATH
to my .profile
or .zshrc
files doesn't work since no shell is executed during the X session startup.
Is there a way to define the PATH
without introducing any kind of custom startup file like .xsessionrc
?