Package Details: xscreensaver-dbus-screenlock 2-2

Git Clone URL: https://aur.archlinux.org/xscreensaver-dbus-screenlock.git (read-only)
Package Base: xscreensaver-dbus-screenlock
Description: Shell-integrated screen-locking with xscreensaver
Upstream URL: http://ubuntuforums.org/showthread.php?t=1865593&s=1c7f28c50a3f258e1d3404e41f098a0b&p=11418175#post11418175
Licenses: GPL
Conflicts: gnome-screensaver, light-locker
Provides: gnome-screensaver, light-locker
Submitter: quequotion
Maintainer: quequotion
Last Packager: quequotion
Votes: 0
Popularity: 0.000000
First Submitted: 2015-10-23 17:08
Last Updated: 2017-05-15 23:35

Required by (15)

Sources (5)

Latest Comments

quequotion commented on 2017-05-15 05:00

>pteromys
As of version 2-1, I'm going with your idea.

quequotion commented on 2017-04-01 16:23

@pteromys
>stubbornly autostarting screensavers through dbus
I'm not sure what you mean by this. Which DE did you have this problem with?

Do you mean that it starts its own screensaver service that overrides the one created by the python script, that it never runs the xdg autostart, or something else?

Either way, nice idea! I'd like to cover all bases. The only downsides to including this in the package I can think of are the possibility another package provides that file and the need for two (freedesktop vs gnome) files. As I understand it the .service files do not keep a service running, but act as a socket to activate a service on-demand. It shouldn't cause any meaningful waste of resources to have them installed, even if they aren't necessary (it could even be more efficient than xdg autostart--I'll do some tests and come back).

EDIT: Using /usr/share/dbus-1/services/org.{freedesktop,gnome}.ScreenSaver.service instead of the xdg autostarts works just as well and causes no problems for me.

Is there a particular reason you wouldn't recommend putting this in the package?

pteromys commented on 2017-03-28 03:55

For an alternative method to autostart this script (don't add this to the package; this is just for users whose DEs are stubbornly autostarting screensavers through dbus), create /usr/share/dbus-1/services/org.freedesktop.ScreenSaver.service with the following content:

[D-BUS Service]
Name=org.freedesktop.ScreenSaver
Exec=/usr/bin/xscreensaver-dbus-screenlock-freedesktop.py

quequotion commented on 2016-11-14 20:04

Two scripts, two .desktop files. Should work in either freedesktop or gnome DEs

quequotion commented on 2015-11-15 22:23

Now emulating org.freedesktop.ScreenSaver (light-locker) instead of org.gnome.ScreenSaver (gnome-screensaver) because this is what wingpanel-indicator-session expects.

Edit xscreensaver-dbus-screenlock.py and swap in the commented lines if you need to emulate gnome-screensaver. If you save the file in /usr/local/sbin/ it will not be overwritten by future upgrades.