Nikita Nikishin
2011-Sep-30 16:44 UTC
[LightDM] Triggering LightDM's lockscreen or user switcher
Hello, I am working on integrating a few DM's into XFCE's logout button. I've found commands to lock GDM and XScreensaver: gnome-screensaver-command -l And: xscreensaver-command -lock Is there a similar way to lock the screen (and maybe switch to the user selection dialog) with LightDM? Thank you!
Yves-Alexis Perez
2011-Sep-30 19:03 UTC
[LightDM] Triggering LightDM's lockscreen or user switcher
On ven., 2011-09-30 at 12:44 -0400, Nikita Nikishin wrote:> Hello, > > I am working on integrating a few DM's into XFCE's logout button. I've > found commands to lock GDM and XScreensaver: > > gnome-screensaver-command -l > > And: > > xscreensaver-command -lockShouldn't you use xdg-screensaver or xflock4?> > Is there a similar way to lock the screen (and maybe switch to the > user selection dialog) with LightDM?Locking the screen is not really a lightdm feature. Switching user is supported through a gdmflexiserver but it's not really in the PATH so you would need to try both the gdm and lightdm path. Regards, -- Yves-Alexis -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20110930/df5d4ccc/attachment.pgp>
Guido Berhoerster
2011-Sep-30 19:30 UTC
[LightDM] Triggering LightDM's lockscreen or user switcher
* Nikita Nikishin <nnikishi at emich.edu> [2011-09-30 18:50]:> Hello, > > I am working on integrating a few DM's into XFCE's logout button. I've found commands to lock GDM and XScreensaver: > > gnome-screensaver-command -l > > And: > > xscreensaver-command -lock > > Is there a similar way to lock the screen (and maybe switch to the user selection dialog) with LightDM?We use the following modification to gdmflexiserver to lock the screen before switching users on openSUSE: https://build.opensuse.org/package/view_file?file=lightdm-lock-screen-before-switch.patch&package=lightdm&project=X11%3Axfce&srcmd5=4fd8b507ca5e29e2fa9c5edb483f12b8 Apart from xscreensaver and gnome-screenserver it also works with the KDE screensaver slock and xlock/xlockmore. -- Guido Berhoerster
Nikita Nikishin
2011-Sep-30 23:38 UTC
[LightDM] Triggering LightDM's lockscreen or user switcher
Thank you everyone for the input. I managed to hack together a patch (that actually works), so I used xflock4 and gdmflexiserver to accomplish both of those tasks. Thank you once again! Nikita ----- Original Message ----- From: "Nikita Nikishin" <nnikishi at emich.edu> To: lightdm at lists.freedesktop.org Sent: Friday, September 30, 2011 9:44:26 AM Subject: [LightDM] Triggering LightDM's lockscreen or user switcher Hello, I am working on integrating a few DM's into XFCE's logout button. I've found commands to lock GDM and XScreensaver: gnome-screensaver-command -l And: xscreensaver-command -lock Is there a similar way to lock the screen (and maybe switch to the user selection dialog) with LightDM? Thank you! _______________________________________________ LightDM mailing list LightDM at lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/lightdm