14192
+ ��膩��� 1 #!/bin/bash
+ ��膩��� 2
+ ��膩��� 3 METHOD_NAME=$1
+ ��膩��� 4
+ ��膩��� 5 if test -z "$METHOD_NAME"
+ ��膩��� 6 then
+ ��膩��� 7 cat <<EOF
+ ��膩��� 8 This program calls gaim API functions using DBus. As opposed to gaim-send,
+ ��膩��� 9 it does not print the return value.
+ ��膩��� 10
+ ��膩��� 11 Usage:
+ ��膩��� 12
+ ��膩��� 13 $0 method-name type1:parameter1 type2:parameter2 ...
+ ��膩��� 14
+ ��膩��� 15 This shell script just invokes dbus-send, see man dbus-send for how
+ ��膩��� 16 to specify the parameters.
+ ��膩��� 17
+ ��膩��� 18 Examples:
+ ��膩��� 19
+ ��膩��� 20 $0 GaimCoreQuit
+ ��膩��� 21
+ ��膩��� 22 Use dbus-viewer to get the list of supported functions and their parameters.
+ ��膩��� 23 EOF
+ ��膩��� 24 exit 1
+ ��膩��� 25 fi
+ ��膩��� 26
+ ��膩��� 27 shift
+ ��膩��� 28 dbus-send --dest=net.sf.gaim.GaimService --type=method_call /net/sf/gaim/GaimObject net.sf.gaim.GaimInterface.$METHOD_NAME "$@"
+ ��膩��� 29
+ ��膩��� 30 echo