the-cavalry / light-locker

A simple session-locker for lightdm
GNU General Public License v2.0
222 stars 22 forks source link

Make work for GNOME 3.24+ using sddm, lightdm and other display managers #100

Open resolutecake opened 7 years ago

resolutecake commented 7 years ago

The future of lightdm seems uncertain with Ubuntu moving to GNOME

GNOME 3.24 and since 3.18ish, instead of embracing Wayland, has a screen locker an blanking in a separate wasteful and trouble-creating X session.

There is a need for screen locking and blanking under Wayland for anything that is not gdm, ie. lightdm and sddm.

screen can be blanked under Wayland/GNOME using: busctl --user set-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode i 0 0 for on 1 for standby

cavalier38 commented 7 years ago

Unfortunately I have no experience with wayland yet. I have played with weston in the early stages, but I haven't had any time since.

What I thought from the presentations I attended, is that you could have multiple sessions compositors in one system compositor. This way eliminating the need of VT switching, and not exposing the locked sessions.

If wayland needs a screen locker, I think that should be part of the compositor (in order to work properly) or there should be a screen locker api in the wayland or weston protocols. If the compositor doesn't know about the screen locker, if might not be able to make it properly hide the session content and, you would still have the same security loop holes which are in X11.

Maybe these protocols are already in place and light-locker could use them. But I haven't looked into wayland nor weston recently.

mikeymop commented 5 years ago

Gnome Wayland does not create a new display server when locking. Instead gnome-shell draws it's own 'shield' on top of the shell and is still a part of the gnome-shell process.

Are you instead talking about light-locker's proclivity to spawning a 2nd display server?

Iey4iej3 commented 4 years ago

A reference to swaylock, a screen locker for Wayland.