the-cavalry / light-locker

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

DBus interface conflicts with GNOME Screensaver #158

Open jarnos opened 3 years ago

jarnos commented 3 years ago

light-locker 1.8.0

If light-locker is running,

dbus-send --print-reply --dest=org.freedesktop.DBus \ /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner \ string:org.gnome.ScreenSaver

exits with 0 status. And command

dbus-send --session \ --dest=org.gnome.ScreenSaver \ --type=method_call \ /org/gnome/ScreenSaver \ org.gnome.ScreenSaver.Lock

locks screen.

But this is bad, since xdg-screensaver script from xdg-utils package thinks there is gnome-screensaver running. Other commands for xdg-screensaver do not work, as light-locker is supposed to work with Xserver screensaver, right? xdg-screensaver should be able to detect that light-locker, not gnome-screensaver is running.

jarnos commented 3 years ago

Oh, I can detect light-locker before gnome-screensaver in xdg-screensaver by light-locker-command --query, so maybe this isn't big issue.