[kupfer] Use dbus-send --type=method_call in kupfer executable
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] Use dbus-send --type=method_call in kupfer executable
- Date: Thu, 1 Apr 2010 13:53:38 +0000 (UTC)
commit 6f06d4a10a79bef260c050f4898d19b869ec7651
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Apr 1 15:03:29 2010 +0200
Use dbus-send --type=method_call in kupfer executable
bin/kupfer.in | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/bin/kupfer.in b/bin/kupfer.in
index 53deda6..13ae3d8 100755
--- a/bin/kupfer.in
+++ b/bin/kupfer.in
@@ -36,14 +36,15 @@ fi
test "x${1:0:2}" = "x--"
KUPFER_HAS_OPTIONS=$?
-test $KUPFER_HAS_OPTIONS != 0 && dbus-send --print-reply --dest=se.kaizer.kupfer /interface se.kaizer.kupfer.Listener.Present >/dev/null 2>&1
+test $KUPFER_HAS_OPTIONS != 0 && dbus-send --type=method_call --print-reply \
+ --dest=se.kaizer.kupfer /interface se.kaizer.kupfer.Listener.Present \
+ >/dev/null 2>&1
KUPFER_RUNNING=$?
if test \( -n "$TEXT_INPUT" -a $KUPFER_HAS_OPTIONS != 0 \)
then
- dbus-send --print-reply --dest=se.kaizer.kupfer /interface \
- se.kaizer.kupfer.Listener.PutText string:"$TEXT_INPUT" \
- >/dev/null 2>&1
+ dbus-send --type=method_call --dest=se.kaizer.kupfer /interface \
+ se.kaizer.kupfer.Listener.PutText string:"$TEXT_INPUT"
fi
_realpaths () {
@@ -60,9 +61,8 @@ then
# NOTE: We must escape commas here since it is dbus-send's
# array item separator. This is then unescaped by kupfer
ARRAY=$(_realpaths "$@" | sed -e 's/,/%%kupfercomma%%/g' | tr \\0 ,)
- dbus-send --print-reply --dest=se.kaizer.kupfer /interface \
- se.kaizer.kupfer.Listener.PutFiles array:string:"$ARRAY" \
- >/dev/null 2>&1
+ dbus-send --type=method_call --dest=se.kaizer.kupfer /interface \
+ se.kaizer.kupfer.Listener.PutFiles array:string:"$ARRAY"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]