the-cavalry / light-locker

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

light-locker does not function with OpenRC + elogind #103

Open PharmaceuticalCobweb opened 6 years ago

PharmaceuticalCobweb commented 6 years ago

Tested with light-locker 1.8.0-1 on Parabola (similar to Arch Linux).

On OpenRC systems with elogind (logind extracted for non-systemd systems) "light-locker-command -l" results in:

** Message: Received error message from the locker: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files

Which suggests that elogind/openrc is not supported. Yet ConsoleKit/UPower and logind/systemd are supported according to the readme.

Might it be possible to support elogind/openrc? ConsoleKit has been deprecated for quite awhile now and many OpenRC users have had to switch to elogind since so many applications hard depend on systemd.

LiSongMWO commented 6 years ago

I had the same issue. Turns out I started the light-locker service before my session dbus was launched.

You can find out if your light-locker daemon is reachable over dbus with

$ light-locker-command -q

If it is not running or not reachable over dbus you'll get:

** Message: Locker is not running!

If everything is fine you'll get something else like:

The screensaver is inactive