Package Details: xscreensaver-dbus-screenlock 5-2

Git Clone URL: https://aur.archlinux.org/xscreensaver-dbus-screenlock.git (read-only, click to copy)
Package Base: xscreensaver-dbus-screenlock
Description: DE integrated screen-locking with xscreensaver
Upstream URL: http://ubuntuforums.org/showthread.php?t=1865593&s=1c7f28c50a3f258e1d3404e41f098a0b&p=11418175#post11418175
Licenses: GPL
Submitter: quequotion
Maintainer: quequotion
Last Packager: quequotion
Votes: 2
Popularity: 0.000002
First Submitted: 2015-10-23 17:08 (UTC)
Last Updated: 2022-06-19 18:00 (UTC)

Pinned Comments

quequotion commented on 2016-11-14 20:04 (UTC) (edited on 2022-03-04 20:20 (UTC) by quequotion)

Provides a replacement for the dbus methods org.{freedesktop,gnome}.ScreenSaver Lock, such as called by the "Lock" menu item of session indicators.

Latest Comments

Alad commented on 2022-06-17 11:38 (UTC)

Please change the shebang to /usr/bin/python, it works fine (with some deprecation warnings)

quequotion commented on 2022-03-04 20:10 (UTC)

@zomgugoff

Thanks for the notice! Sloppy of me. Fixed.

zomgugoff commented on 2022-03-03 20:18 (UTC)

MD5SUMs need to be updated.

PKGBUILD: md5sums=('9b052558e59944a66d4174a723c99011' '77fe4529da9a081f617c8be07b8c8ee7' '9181f92d592549c5506a9722b47b7e94' '8802e2b10232e39fe98b8c6e7228c83a' '65a7fb8a4d3e8183009e9caffc3e587a' '90ebf9aabc89691dd20f70c78506daea' '599874ebe25e03cbf95812ea8a6e8f25')

Current files: 9181f92d592549c5506a9722b47b7e94 org.freedesktop.ScreenSaver.service 8802e2b10232e39fe98b8c6e7228c83a org.gnome.ScreenSaver.service 65a7fb8a4d3e8183009e9caffc3e587a xscreensaver-dbus-screenlock-freedesktop.desktop 9b052558e59944a66d4174a723c99011 xscreensaver-dbus-screenlock-freedesktop.py 90ebf9aabc89691dd20f70c78506daea xscreensaver-dbus-screenlock-gnome.desktop 77fe4529da9a081f617c8be07b8c8ee7 xscreensaver-dbus-screenlock-gnome.py

quequotion commented on 2017-12-03 20:18 (UTC) (edited on 2021-07-08 22:56 (UTC) by quequotion)

EDIT: siiiiiiiiggggggghhhhhhhh.... nevermind, the dbus services are fine; the .desktop method also works fine, just the "lock" button on the session indicator I've been using doesn't work (how it used to?).

~~apparently wingpanel-indicator-session-git is no longer using either freedekstop nor gnome methods to initiate the screensaver; i'll figure it out later when I don't feel like puking on it.~~

EDIT: As of now, upstream wingpanel-indicator-session is using the GNOME dubs interface (stopped working again for a while, as above).

Theoretically, xscreensaver-dbus-screenlock provides daemons that listen on both methods (which I've adapted into a new compiz screensaver that I need to publish)...

quequotion commented on 2017-05-15 05:00 (UTC)

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

quequotion commented on 2017-04-01 16:23 (UTC) (edited on 2017-04-01 17:34 (UTC) by quequotion)

@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 (UTC)

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 (UTC) (edited on 2022-03-04 20:20 (UTC) by quequotion)

Provides a replacement for the dbus methods org.{freedesktop,gnome}.ScreenSaver Lock, such as called by the "Lock" menu item of session indicators.

quequotion commented on 2015-11-15 22:23 (UTC)

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.