Package: bash
Version: 4.3-15
Followup-For: Bug #379696
Dear Maintainer,
I decided to add some info in case you think this may help to close this
bug.
The issue regarding the $PATH differences between GUI and CLI sessions can
be solved creating a .xsessionrc file with the desired variables as
suggested in the Xsession (5) manual page:
/etc/X11/Xsession.d/40x11-common_xsessionrc
Source global environment variables. This script will source
anything in $HOME/.xsessionrc if the file is present. This
allows the user to set global environment variables for their X
session, such as locale information.
In my particular case, the described bug appeared in my system when I had
to manually modify my .profile file to update it (Bash bug #820856).
Since then:
$ echo $PATH (in a CLI session)
/home/robert/bin:/home/robert/.local/bin:/usr/local/bin:/usr/bin:/bin:\
/usr/local/games:/usr/games
$ echo $PATH (in a XFCE4 session)
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
After creating a .xsessionrc file containing
PATH="$HOME/bin:$HOME/.local/bin:$PATH",
the $PATH variable is regardless the session type:
$ echo $PATH
/home/robert/bin:/home/robert/.local/bin:/usr/local/bin:/usr/bin:/bin:\
/usr/local/games:/usr/games
If you need anything else, let me know it.
Regards.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=ca_ES.utf8, LC_CTYPE=ca_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages bash depends on:
ii base-files 9.6
ii dash 0.5.8-2.2
ii debianutils 4.7
ii libc6 2.22-11
ii libncurses5 6.0+20160319-1
ii libtinfo5 6.0+20160319-1
Versions of packages bash recommends:
ii bash-completion 1:2.1-4.3
Versions of packages bash suggests:
pn bash-doc <none>
-- Configuration Files:
/etc/bash.bashrc changed [not included]
-- no debconf information