From 51d564f8be23a64bc5e763356ab81de581b3b2c0 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Mon, 30 Jun 2014 17:31:46 +0200 Subject: [PATCH] xdg-screensaver: use D-Bus api instead of gnome-screensaver call. --- scripts/xdg-screensaver.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/xdg-screensaver.in b/scripts/xdg-screensaver.in index b05ab2c..8315f6a 100644 --- a/scripts/xdg-screensaver.in +++ b/scripts/xdg-screensaver.in @@ -466,7 +466,12 @@ screensaver_gnome_screensaver() ;; lock) - gnome-screensaver-command --lock > /dev/null 2> /dev/null + dbus-send --session \ + --dest=org.gnome.ScreenSaver \ + --type=method_call \ + /org/gnome/ScreenSaver \ + org.gnome.ScreenSaver.Lock \ + 2> /dev/null result=$? ;; -- 1.8.4.5