Zucca Moderator
Joined: 14 Jun 2007 Posts: 3345 Location: Rasi, Finland
|
Posted: Fri Sep 15, 2017 6:21 pm Post subject: LightDM greeter-wrappper -setting non-functional? |
|
|
I'll keep this short.
I wanted to run xscreensaver under user "screensaver" when LightDM presents the login dialog.
greeter-setup-script seems to run before X has started so I resorted to using greeter wrapper.
Reading the lightdm.log I can see lightdm (trying to) run the wrapper script + arguments + /path/to/greeter.
I messed around with this but every time LightDM fails to start. So I commented the line and it works again.
Then I set greeter-wrapper=touch /tmp/greeter-wrapper-has-run.blank aaaaand - nothing. I cannot see the file appearing. This means that, if set, session wrapper isn't actually being run at all!
Interestingly - If I give the greeter binary for greeter-wrapper, it works, although in lighdm.log I can see it executing /usr/sbin/lightdm-gtk-greeter /usr/sbin/lightdm-gtk-greeter. So it gives path to itself as an argument, but works anyway.
Can anyone spot an user error here or is this a bug of some strange form?
I also have created this little script to see exactly what's happeing: Code: | #!/bin/bash
phase="${1,,}"
shift
command="$@"
echo "Phase - ${phase}"
case "${phase}" in
debug)
bash -x "$(readlink -f "$0")" "$@" &> "/var/log/lightdm/${1,,}.debug.log"
;;
display-setup)
# placeholder - do nothing
true
;;
greeter-setup)
# placeholder as well
true
;;
greeter-wrapper)
echo "Greeter command: $*"
sudo -u screensaver xscreensaver &
exec $command
;;
esac |
If the first argument is debug the the script runs itself with bash -x and creates logs.
However the log doesn't even appear for greeter-wrapper.
Curret lightdm.conf: /etc/lightdm.conf: | [LightDM]
[Seat:*]
user-session=xfce
display-setup-script=/etc/lightdm/setup-all.sh debug display-setup
greeter-setup-script=/etc/lightdm/setup-all.sh debug greeter-setup
greeter-wrapper=/etc/lightdm/setup-all.sh debug greeter-wrapper
session-wrapper=/etc/lightdm/Xsession
[XDMCPServer]
[VNCServer] | ... so pretty much all defaults.
Also no systemd if it matters at all in this case. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|