4 ms·
Wayland uses WAYLAND_DISPLAY, X uses DISPLAY.
by md8z 5y ago
Wayland uses WAYLAND_DISPLAY, X uses DISPLAY.
- lucb1e 5y agoI think you misunderstood my question. Indeed with `DISPLAY=:0 glxgears` I can run something on my screen from a different virtual terminal (perhaps even an ssh session), but what I mean is that my desktop environment takes the PATH environment variable from somewhere and I don't know where. When I run 'josm' in the Alt+F2 dialog, it can't find the command, even though in my bashrc I configured my PATH to include ~/bin/.
- the8472 5y agoEnvironment variables are defined in multiple files. most desktop environments launch in a systemd user session, so one option is to use that[0]. Then are .xsession, scripts specific to the DE, /etc/environment and a bunch of other stuff I am forgetting. [0] https://wiki.archlinux.org/title/systemd/User#Environment_variables https://wiki.archlinux.org/title/systemd/User#Environment_va...
- nightfly 5y agoA TTY like you get in your "ALT+F2" is a new login/session shell and uses .bash_profile rather than .bashrc (which is invoked when you create a new bash process in an already existing login session like when you open a terminal window). There are lots of moving pieces, but I've found the easiest way to get the same behavior in both is to have my .bash_profile source my .bashrc.