Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LightDM greeter-wrappper -setting non-functional?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1469
Location: KUUSANKOSKI, Finland

PostPosted: Fri Sep 15, 2017 6:21 pm    Post subject: LightDM greeter-wrappper -setting non-functional? Reply with quote

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 :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum