The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

How to set path for dmenu_run with Debian standard i3 startup

asked Nov 1 '15

Felicitus gravatar image

updated Nov 1 '15

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-managerwhich 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?

1 answer

Sort by » oldest newest most voted
0

answered Nov 10 '15

peterN gravatar image

Not sure for xdm but lightdm does allow you to pick/set a session based on *.desktop files (see /usr/share/xsessions/i3.desktop for an example). You can as well set your own/custom *.desktop file, where you could set a PATH environment.

Why do you need to add ~/bin to your PATH?

Question Tools

1 follower

Stats

Asked: Nov 1 '15

Seen: 84 times

Last updated: Nov 10