The Following User Says Thank You to Vadi For This Useful Post: | ||
|
2009-12-28
, 14:19
|
Posts: 105 |
Thanked: 62 times |
Joined on Aug 2009
@ Finland
|
#2
|
|
2009-12-29
, 05:35
|
Posts: 7 |
Thanked: 3 times |
Joined on Dec 2008
|
#3
|
The Following User Says Thank You to Vadi For This Useful Post: | ||
|
2010-01-04
, 09:06
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#4
|
At least there was a way with dbus, see: http://talk.maemo.org/showthread.php?p=425872
I think the interface names have changed a bit, so the old dbus command is not working. I haven't yet found the new one.
|
2010-01-06
, 09:50
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#5
|
signal sender=org.freedesktop.DBus -> dest=:1.174 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.174" method call sender=:1.174 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='method_call'" method call sender=:1.174 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='method_return'" method call sender=:1.174 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='error'" method call sender=:1.27 -> dest=org.freedesktop.DBus serial=549 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender='com.nokia.AccountsUI',path='/com/nokia/AccountsUI',interface='com.nokia.Accounts'" method call sender=:1.27 -> dest=org.freedesktop.DBus serial=550 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='com.nokia.AccountsUI'" method call sender=:1.27 -> dest=org.freedesktop.DBus serial=552 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender='com.nokia.AccountsUI',path='/com/nokia/AccountsUI',interface='com.nokia.Accounts'" method call sender=:1.27 -> dest=org.freedesktop.DBus serial=553 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='com.nokia.AccountsUI'"
The Following User Says Thank You to DaSilva For This Useful Post: | ||
|
2010-01-07
, 06:25
|
Posts: 7 |
Thanked: 3 times |
Joined on Dec 2008
|
#6
|
run-standalone.sh dbus-send --print-reply --type=method_call --dest=org.freedesktop.Telepathy.AccountManager /org/freedesktop/Telepathy/Account/gabble/jabber/YOURACCOUNT_40gmail_2ecom0 org.freedesktop.DBus.Properties.Set string:"org.freedesktop.Telepathy.Account" string:"RequestedPresence" uint32:1 string:"offline" string:"newStatus"
dest=org.freedesktop.Telepathy.AccountManager serial=4835 path=/org/freedesktop/Telepathy/Account/gabble/jabber/YOURACCOUNT_40gmail_2ecom0; interface=org.freedesktop.DBus.Properties; member=Set string "org.freedesktop.Telepathy.Account" string "RequestedPresence" variant struct { uint32 1 string "offline" string "@Home" }
|
2010-01-07
, 10:06
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#7
|
|
2010-01-13
, 20:51
|
Posts: 14 |
Thanked: 10 times |
Joined on Oct 2009
|
#8
|
With your solution you would have to add it for every single account.
Isn't it possible to do it for all enabled accounts with one command?
/usr/bin/dbus-send --type=method_call --print-reply --dest=org.freedesktop.Telepathy.AccountManager /org/freedesktop/Telepathy/AccountManager org.freedesktop.DBus.Properties.Get string:org.freedesktop.Telepathy.AccountManager string:ValidAccounts
|
2010-01-13
, 22:40
|
Posts: 61 |
Thanked: 60 times |
Joined on Jul 2007
@ Erlangen
|
#9
|
|
2010-01-13
, 23:34
|
Posts: 540 |
Thanked: 387 times |
Joined on May 2009
|
#10
|
I was thinking about python D-Bus messaging... but it doesn't look easy to implement.
The idea is to change status based on wlan0 AP or even mac address of the AP. I know how to run the script at the wireless connection event. And I know how to check AP name or its mac address. But I really have no idea how to change IM status. Googling didn't give me the answer.
Any ideas?