summaryrefslogtreecommitdiff
path: root/src/gs-listener-dbus.c
AgeCommit message (Collapse)AuthorFilesLines
2015-10-20Revert "Lock the screen on systemd sleep under systemd"monsta1-17/+0
This reverts commit f1739c03e00a51e87bd49d04827e5b765d1c70de.
2015-10-14Lock the screen on systemd sleep under systemdFaidon Liambotis1-0/+17
Add a handler for the PrepareForSleep event on the system bus under systemd and lock the screen in such an event. This addresses the issue where "systemctl suspend" suspends the system but the system isn't locked on resume, with the obvious negative security connotations.
2015-10-14Fix systemd event handlingFaidon Liambotis1-21/+35
Right now the systemd event handling is not actually working at all. This happens because _listener_message_path_is_our_session() has code to check if the event came to our session (e.g. "10") and, under systemd, does this by trying to compare it with the object path, by stripping the /org/freedesktop/login1/session/ prefix. However, under -at least recent versions- of systemd, the session ID part of the path is escaped separately, and following D-Bus rules initial numbers are escaped. In the example above, the obj_path is /org/freedesktop/login1/session/_310, so the comparison actually fails. Port a fix that has been present on various distributions (e.g. Arch) and pieces of software (e.g. cinnamon-screensaver) since at least March 2013. The original author is Peter de Ridder <[email protected]>. The bug and the fix can both be easily verified by running "loginctl lock-sessions".
2015-09-04Switch to org.gnome.SessionManagerClement Lefebvre1-3/+3
2014-07-02Remove some old code after GLIB and GTK2 minimum version bumpStefano Karapetsas1-24/+1
2014-01-14Check for logind, not for systemdraveit651-2/+3
2014-01-14Fix compile warning if not compiled with systemdraveit651-2/+1
2014-01-14listener-dbus: s/ConsoleKit/systemd/raveit651-2/+2
2012-12-05fix indentationNelson Marques1-2/+2
2012-12-05prevent mate-screensaver to launch a 2nd instanceNelson Marques1-3/+12
2012-11-18fixed incorrect fsf addressesSteve Zesch1-1/+1
2012-11-12add support for systemd-logindStefano Karapetsas1-10/+211
http://git.gnome.org/browse/gnome-screensaver/commit/?id=6bb98e9acb9391d1aec8f7dcb44ef7d16b3dcb91 https://bugzilla.gnome.org/show_bug.cgi?id=669787
2011-11-04first commitPerberos1-0/+2272