From 677527a8e1cf4f1ec8655c232dc9ac5d5ca8abe5 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 25 Sep 2019 16:23:19 +0200 Subject: [PATCH 1/2] lightdm: Rebuild to revert change in startup Remove --login from the shebang of /usr/bin/lightdm-session. This effectively reverts ee684e9ac3abb0fa9f12ee8c0531a17165876d49 "lighdm: Rebuild to read bash init scripts". To many users have problems, because the anaconda installer changes the PATH in the users .bashrc to have it own directory prepended, where it installs incompatible system tools. Typical effect is a failure to start the desktop environment with a message like "Unable to contact settings server". If individual users want to opt in into having their .bashrc executed, and settings be relevant for all desktop applications, they could create ~/.config/xfce4/xinitrc with . ~/.bashrc . /etc/xdg/xfce4/xinitrc in it. --- lightdm.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightdm.be0 b/lightdm.be0 index bc46132aa..bb7dd050a 100755 --- a/lightdm.be0 +++ b/lightdm.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION lightdm-1.28.0-1 +# BEE_VERSION lightdm-1.28.0-2 SRCURL[0]="https://github.com/CanonicalLtd/lightdm/releases/download/${PKGVERSION}/lightdm-${PKGVERSION}.tar.xz" @@ -47,7 +47,7 @@ mee_configure() { mee_install_post() { cat > ${D}/usr/bin/lightdm-session <<- 'EOF' - #! /bin/bash --login + #! /bin/bash # First argument is full command, ´for backwards compatibility'. From cbf42f400d02d4dfc46d2c198fce364c00c01705 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 25 Sep 2019 16:49:45 +0200 Subject: [PATCH 2/2] lightdm: Set umask to 007 The current umask for desktop applications is 022, which is the default umask for systemd services and is inherited down from lightdm.service to the desktop applications. This lax umask with o=r was seen to be a problem. We have a recommended value of 007 for the umask in /project/admin/skel/.bashrc. However, applications started from the desktop don't have this recommended value, because the users .bashrc is not read by default. Whe tried to read the users .bashrc during desktop initalization, but had to revert that because of problems with Anaconda, which installs incompatible junk into the users path. Set umask of lightdm.service to 007. --- lightdm.be0 | 1 + 1 file changed, 1 insertion(+) diff --git a/lightdm.be0 b/lightdm.be0 index bb7dd050a..a044b504b 100755 --- a/lightdm.be0 +++ b/lightdm.be0 @@ -89,6 +89,7 @@ EOF ExecStart=/usr/bin/lightdm StandardOutput=syslog Restart=always + UMask=007 [Install] WantedBy=graphical.target