32 lines
937 B
Diff
32 lines
937 B
Diff
|
From 34e033845ea6997bc4fdafd9bdd4856bfa5d0d36 Mon Sep 17 00:00:00 2001
|
||
|
From: Frederic Crozat <fcrozat@suse.com>
|
||
|
Date: Mon, 30 Jun 2014 17:31:46 +0200
|
||
|
Subject: [PATCH 15/22] 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=$?
|
||
|
;;
|
||
|
|
||
|
--
|
||
|
2.1.0
|
||
|
|