view src/gaim-send-async @ 12145:5bda6a03d43b

[gaim-migrate @ 14446] A fix for SimGuy. He says that we should actually honor the system log preference under all cases. I suppose, maybe he's right. (01:05:24) Kevin Stange (SimGuy): I have the system log off (01:05:33) Kevin Stange (SimGuy): and yet somehow my own status changes are winding up in it (01:05:56) Kevin Stange (SimGuy): seems to just be idle changes (01:06:16) Kevin Stange (SimGuy): ---- +++ kevin_m_stange became unidle @ 2005-11-16 09:04:06 ---- (01:06:33) Kevin Stange (SimGuy): it is only logging my own idleness changes :) (01:07:10) Kevin Stange (SimGuy): I was just messing around and opening the dialogs from the tools menu and rather than being warned I have no system log, it showed me my system log, which shouldn't have happened :) (01:11:35) Kevin Stange (SimGuy): rlaager: it's clearly because of line ~ 1353 in status.c not checking the preference committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sat, 19 Nov 2005 01:19:51 +0000
parents 1d97f18595be
children ac5bc9a7b603
line wrap: on
line source

#!/bin/bash

METHOD_NAME=$1

if test -z "$METHOD_NAME" 
then
    cat <<EOF 
This program calls gaim API functions using DBus.  As opposed to gaim-send, 
it does not print the return value.

Usage:

   $0 method-name type1:parameter1 type2:parameter2 ...

This shell script just invokes dbus-send, see man dbus-send for how 
to specify the parameters.  

Examples:

   $0 GaimCoreQuit

Use dbus-viewer to get the list of supported functions and their parameters.
EOF
    exit 1
fi

shift
dbus-send --dest=org.gaim.GaimService --type=method_call /org/gaim/GaimObject org.gaim.GaimInterface.$METHOD_NAME "$@"

echo