[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#962224: marked as done (lightdm does not source ~/.profile)



Your message dated Wed, 18 Oct 2023 20:25:59 +0200
with message-id <04e86466609a2bb476159d3f62b7390bab0c5fcb.camel@debian.org>
and subject line Re: Bug#636108: Still a problem
has caused the Debian Bug report #636108,
regarding lightdm does not source ~/.profile
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
636108: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636108
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lightdm
Version: 1.26.0-4
Severity: normal
Tags: newcomer

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

Having switched to lightdm from GDM3 (due to another bug in gdm3) I now find
~/.profile does
not run.

In order to debug this I created a clean user (new) called guest (pid=1001)
I modified ~/.profile and ~/.bash_profile to log their use (see attached log)

In summary the behaviour was:

gdm3 + cinnamon = Runs ~/.profile only
gdm3 + xfce = Runs ~/.profile only
gdm3 + gnome3 = Runs ~/.profile only

Switch to lioghtdm & reboot system

lightdm + cinnamon = Runs neither
lightdm + xfce = Runs neither
lightdm + gnome = Runs neither
lightdm + gnome(2nd version) = Runs neither

The doc @ https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/794315 points
to where this has been fixed in the past.




-- System Information:
Debian Release: 10.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lightdm depends on:
ii  adduser                                3.118
ii  dbus                                   1.12.16-1
ii  debconf [debconf-2.0]                  1.5.71
ii  libaudit1                              1:2.8.4-3
ii  libc6                                  2.28-10
ii  libgcrypt20                            1.8.4-5
ii  libglib2.0-0                           2.58.3-2+deb10u2
ii  libpam-systemd [logind]                241-7~deb10u4
ii  libpam0g                               1.3.1-5
ii  libxcb1                                1.13.1-2
ii  libxdmcp6                              1:1.1.2-3
ii  lightdm-gtk-greeter [lightdm-greeter]  2.0.6-1
ii  lsb-base                               10.2019051400

Versions of packages lightdm recommends:
ii  xserver-xorg  1:7.7+19

Versions of packages lightdm suggests:
ii  accountsservice  0.6.45-2
ii  upower           0.99.10-1
ii  xserver-xephyr   2:1.20.4-1

-- debconf information:
* shared/default-x-display-manager: lightdm
  lightdm/daemon_name: /usr/sbin/lightdm
$ head -20 ~/.profile 
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022



ENV="/tmp/${USER}.env"
rm -f ${ENV}
echo ".profile run at $(date)" >  ${ENV}
pstree -glus $$                >> ${ENV}
env                            >> ${ENV} 2>&1

LOGON_TIME=$(date) export LOGON_TIME

$ head -20 ~/.bash_profile 
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022



ENV="/tmp/${USER}-bash.env"
rm -f ${ENV}
echo ".profile run at $(date)" >  ${ENV}
pstree -glus $$                >> ${ENV}
env                            >> ${ENV} 2>&1

LOGON_TIME=$(date) export LOGON_TIME

$ 


*** GDM3 + cinnamon ****

$ ls -l /tmp/*.env
-rw-rw-rw- 1 graeme users  462 Jun  4 18:37 /tmp/graeme-bash.env
-rw-r--r-- 1 graeme users 1226 Jun  4 18:37 /tmp/graeme.env
-rw-r--r-- 1 guest  guest  839 Jun  4 18:42 /tmp/guest.env
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ cat /tmp/guest.env 
.profile run at Thu  4 Jun 18:42:46 BST 2020
systemd(1)---gdm3(826)---gdm-session-wor(826)---gdm-x-session(8109,guest)---Xsession(8109)---pstree(8109)
USER=guest
LANGUAGE=en_GB:en
XDG_SEAT=seat0
XDG_SESSION_TYPE=x11
HOME=/home/guest
DESKTOP_SESSION=cinnamon
GTK_MODULES=gail:atk-bridge
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
LOGNAME=guest
XDG_SESSION_CLASS=user
USERNAME=guest
XDG_SESSION_ID=25
WINDOWPATH=4
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
GDM_LANG=en_GB.UTF-8
XDG_RUNTIME_DIR=/run/user/1001
DISPLAY=:0
LANG=en_GB.UTF-8
XDG_SESSION_DESKTOP=cinnamon
XAUTHORITY=/run/user/1001/gdm/Xauthority
SHELL=/bin/sh
GDMSESSION=cinnamon
QT_ACCESSIBILITY=1
XDG_VTNR=4
PWD=/home/guest
XDG_DATA_DIRS=/home/guest/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/

*** GDM3, xfce ****

$ ls -l /tmp/*.env
-rw-rw-rw- 1 graeme users  462 Jun  4 18:37 /tmp/graeme-bash.env
-rw-r--r-- 1 graeme users 1226 Jun  4 18:37 /tmp/graeme.env
-rw-r--r-- 1 guest  guest  852 Jun  4 18:46 /tmp/guest.env
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ date
Thu  4 Jun 18:47:37 BST 2020
$ cat /tmp/guest.env
.profile run at Thu  4 Jun 18:46:51 BST 2020
systemd(1)---gdm3(826)---gdm-session-wor(826)---gdm-x-session(9450,guest)---Xsession(9450)---pstree(9450)
USER=guest
LANGUAGE=en_GB:en
XDG_SEAT=seat0
XDG_SESSION_TYPE=x11
HOME=/home/guest
DESKTOP_SESSION=xfce
GTK_MODULES=gail:atk-bridge
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
LOGNAME=guest
XDG_SESSION_CLASS=user
USERNAME=guest
XDG_SESSION_ID=28
WINDOWPATH=4
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
GDM_LANG=en_GB.UTF-8
XDG_RUNTIME_DIR=/run/user/1001
DISPLAY=:0
LANG=en_GB.UTF-8
XDG_CURRENT_DESKTOP=XFCE
XDG_SESSION_DESKTOP=xfce
XAUTHORITY=/run/user/1001/gdm/Xauthority
SHELL=/bin/sh
GDMSESSION=xfce
QT_ACCESSIBILITY=1
XDG_VTNR=4
PWD=/home/guest
XDG_DATA_DIRS=/home/guest/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/

*** GDM3, gnome3(wayland) ****

$ date
Thu  4 Jun 18:51:05 BST 2020
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ ls -l /tmp/*.env
-rw-rw-rw- 1 graeme users  462 Jun  4 18:37 /tmp/graeme-bash.env
-rw-r--r-- 1 graeme users 1226 Jun  4 18:37 /tmp/graeme.env
-rw-r--r-- 1 guest  guest  802 Jun  4 18:50 /tmp/guest.env
$ cat /tmp/guest.env 
.profile run at Thu  4 Jun 18:50:03 BST 2020
systemd(1)---gdm3(826)---gdm-session-wor(826)---gdm-wayland-ses(10039,guest)---sh(10039)---pstree(10039)
LANGUAGE=en_GB:en
USER=guest
XDG_SEAT=seat0
XDG_SESSION_TYPE=wayland
SHLVL=0
HOME=/home/guest
DESKTOP_SESSION=gnome
GTK_MODULES=gail:atk-bridge
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
LOGNAME=guest
XDG_SESSION_CLASS=user
USERNAME=guest
XDG_SESSION_ID=31
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
GDM_LANG=en_GB.UTF-8
XDG_RUNTIME_DIR=/run/user/1001
LANG=en_GB.UTF-8
XDG_CURRENT_DESKTOP=GNOME
XDG_SESSION_DESKTOP=gnome
SHELL=/bin/sh
QT_ACCESSIBILITY=1
GDMSESSION=gnome
XDG_VTNR=4
PWD=/home/guest
XDG_DATA_DIRS=/home/guest/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/


************************ switch to lightdm *****************

*** lightdm, cinnamon   ****

drwx------ 2 guest guest 4096 Jun  4 18:56 tracker-extract-files.1001
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ date
Thu  4 Jun 18:57:40 BST 2020
$ ls -l /tmp/*.env
ls: cannot access '/tmp/*.env': No such file or directory


*** lightdm, xfce   ****


$ ls -l /tmp/*.env
ls: cannot access '/tmp/*.env': No such file or directory
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ date
Thu  4 Jun 19:01:59 BST 2020

*** lightdm, gnome3   ****



$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ date
Thu  4 Jun 19:10:02 BST 2020
$ ls /tmp/*.env
$ head -20 ~/.profile 
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022



ENV="/tmp/${USER}.env"
rm -f ${ENV}
echo ".profile run at $(date)" >  ${ENV}
pstree -glus $$                >> ${ENV}
env                            >> ${ENV} 2>&1

LOGON_TIME=$(date) export LOGON_TIME

$ head -20 ~/.bash_profile 
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022



ENV="/tmp/${USER}-bash.env"
rm -f ${ENV}
echo ".profile run at $(date)" >  ${ENV}
pstree -glus $$                >> ${ENV}
env                            >> ${ENV} 2>&1

LOGON_TIME=$(date) export LOGON_TIME

$ 


*** GDM3 + cinnamon ****

$ ls -l /tmp/*.env
-rw-rw-rw- 1 graeme users  462 Jun  4 18:37 /tmp/graeme-bash.env
-rw-r--r-- 1 graeme users 1226 Jun  4 18:37 /tmp/graeme.env
-rw-r--r-- 1 guest  guest  839 Jun  4 18:42 /tmp/guest.env
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ cat /tmp/guest.env 
.profile run at Thu  4 Jun 18:42:46 BST 2020
systemd(1)---gdm3(826)---gdm-session-wor(826)---gdm-x-session(8109,guest)---Xsession(8109)---pstree(8109)
USER=guest
LANGUAGE=en_GB:en
XDG_SEAT=seat0
XDG_SESSION_TYPE=x11
HOME=/home/guest
DESKTOP_SESSION=cinnamon
GTK_MODULES=gail:atk-bridge
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
LOGNAME=guest
XDG_SESSION_CLASS=user
USERNAME=guest
XDG_SESSION_ID=25
WINDOWPATH=4
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
GDM_LANG=en_GB.UTF-8
XDG_RUNTIME_DIR=/run/user/1001
DISPLAY=:0
LANG=en_GB.UTF-8
XDG_SESSION_DESKTOP=cinnamon
XAUTHORITY=/run/user/1001/gdm/Xauthority
SHELL=/bin/sh
GDMSESSION=cinnamon
QT_ACCESSIBILITY=1
XDG_VTNR=4
PWD=/home/guest
XDG_DATA_DIRS=/home/guest/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/

*** GDM3, xfce ****

$ ls -l /tmp/*.env
-rw-rw-rw- 1 graeme users  462 Jun  4 18:37 /tmp/graeme-bash.env
-rw-r--r-- 1 graeme users 1226 Jun  4 18:37 /tmp/graeme.env
-rw-r--r-- 1 guest  guest  852 Jun  4 18:46 /tmp/guest.env
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ date
Thu  4 Jun 18:47:37 BST 2020
$ cat /tmp/guest.env
.profile run at Thu  4 Jun 18:46:51 BST 2020
systemd(1)---gdm3(826)---gdm-session-wor(826)---gdm-x-session(9450,guest)---Xsession(9450)---pstree(9450)
USER=guest
LANGUAGE=en_GB:en
XDG_SEAT=seat0
XDG_SESSION_TYPE=x11
HOME=/home/guest
DESKTOP_SESSION=xfce
GTK_MODULES=gail:atk-bridge
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
LOGNAME=guest
XDG_SESSION_CLASS=user
USERNAME=guest
XDG_SESSION_ID=28
WINDOWPATH=4
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
GDM_LANG=en_GB.UTF-8
XDG_RUNTIME_DIR=/run/user/1001
DISPLAY=:0
LANG=en_GB.UTF-8
XDG_CURRENT_DESKTOP=XFCE
XDG_SESSION_DESKTOP=xfce
XAUTHORITY=/run/user/1001/gdm/Xauthority
SHELL=/bin/sh
GDMSESSION=xfce
QT_ACCESSIBILITY=1
XDG_VTNR=4
PWD=/home/guest
XDG_DATA_DIRS=/home/guest/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/

*** GDM3, gnome3(wayland) ****

$ date
Thu  4 Jun 18:51:05 BST 2020
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ ls -l /tmp/*.env
-rw-rw-rw- 1 graeme users  462 Jun  4 18:37 /tmp/graeme-bash.env
-rw-r--r-- 1 graeme users 1226 Jun  4 18:37 /tmp/graeme.env
-rw-r--r-- 1 guest  guest  802 Jun  4 18:50 /tmp/guest.env
$ cat /tmp/guest.env 
.profile run at Thu  4 Jun 18:50:03 BST 2020
systemd(1)---gdm3(826)---gdm-session-wor(826)---gdm-wayland-ses(10039,guest)---sh(10039)---pstree(10039)
LANGUAGE=en_GB:en
USER=guest
XDG_SEAT=seat0
XDG_SESSION_TYPE=wayland
SHLVL=0
HOME=/home/guest
DESKTOP_SESSION=gnome
GTK_MODULES=gail:atk-bridge
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
LOGNAME=guest
XDG_SESSION_CLASS=user
USERNAME=guest
XDG_SESSION_ID=31
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
GDM_LANG=en_GB.UTF-8
XDG_RUNTIME_DIR=/run/user/1001
LANG=en_GB.UTF-8
XDG_CURRENT_DESKTOP=GNOME
XDG_SESSION_DESKTOP=gnome
SHELL=/bin/sh
QT_ACCESSIBILITY=1
GDMSESSION=gnome
XDG_VTNR=4
PWD=/home/guest
XDG_DATA_DIRS=/home/guest/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/


************************ switch to lightdm *****************

*** lightdm, cinnamon   ****

drwx------ 2 guest guest 4096 Jun  4 18:56 tracker-extract-files.1001
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ date
Thu  4 Jun 18:57:40 BST 2020
$ ls -l /tmp/*.env
ls: cannot access '/tmp/*.env': No such file or directory


*** lightdm, xfce   ****


$ ls -l /tmp/*.env
ls: cannot access '/tmp/*.env': No such file or directory
$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ date
Thu  4 Jun 19:01:59 BST 2020

*** lightdm, gnome3   ****



$ id
uid=1001(guest) gid=1001(guest) groups=1001(guest)
$ date
Thu  4 Jun 19:10:02 BST 2020
$ ls /tmp/*.env

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wed, 2023-10-18 at 12:41 -0500, Ed Siefker wrote:
> Can we revisit this issue?  Upstream lightdm sources .profile, I don't
> understand why Debian changes it.

Still no.
> 
> Even if .profile shouldn't be used for graphical shells, ~/.local/bin
> should clearly be in PATH out of the box.

That's actually not my area of responsibility though.

> If sourcing .profile is unacceptable, the contents of .profile should
> be moved somewhere they will get sourced.

Just move it to .xsessionrc as documented iin

> It's 12 years later, and this issue is still inconveniencing users.

The .xsessionrc path has already been documented 12 years ago.

Regards,
- -- 
Yves-Alexis
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmUwIzcACgkQ3rYcyPpX
RFtOqQgA2MdH0tqjlsLKmoJJGx7EU1zURyqaB9GMEuOSTgY4Bjk97gESnsi4UcuM
iKrEkM33vl15WV4UCWB4sReQ3wGOb45iVyn7reTgd81rcOBi/Ovfk16L+5NNpqMz
8WKq0b0yZUUtKq9GsVP7Ql+QoYK1dLVvtgAsdG8tV/R+Dq5R4C95AolCXZ3jn/4C
g0DgMM/79ybkxPsATOAbpHLaUh03T9rsdocK8/jBfXqUs6hnwQ5B4BIKthkhwNkE
MqhhcjB9Nt4y9HE+ild8u6B6VFFrvUjnMjASAqPT/RZN/LEeloQsr3fIw0Jr8vZG
GYa447uDBbE8Lge3zWQC7cbU8KUBlQ==
=raw9
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: