![]() |
Is there any way to change IM status (telepathy) using the console command?
Is there any way to change IM (telepathy) status using the console command?
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? |
Re: Is there any way to change IM status (telepathy) using the console command?
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. |
Re: Is there any way to change IM status (telepathy) using the console command?
Thanks for the link.
I've used /usr/bin/dbus-monitor to look at D-Bus events. It turned out that there is no CM destination implementation in current telepathy (Maemo 5). And it looks like you'll have to send the D-Bus message to each account you have in telepathy separately. To do that, I guess, I need to read D-Bus manuals first... It's not that intuitive as I want it to be. Anyway, I'll keep you updated as soon as I'll figure out how this thing works. |
Re: Is there any way to change IM status (telepathy) using the console command?
Quote:
|
Re: Is there any way to change IM status (telepathy) using the console command?
I have used the dbus-monitor when changing the global status for all accounts to "Busy" and the first lines look like this:
Code:
signal sender=org.freedesktop.DBus -> dest=:1.174 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired Thanks. |
Re: Is there any way to change IM status (telepathy) using the console command?
command should look like something like this:
Code:
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" And I have no idea how to put them there for dbus-send. We are looking for: Code:
dest=org.freedesktop.Telepathy.AccountManager serial=4835 path=/org/freedesktop/Telepathy/Account/gabble/jabber/YOURACCOUNT_40gmail_2ecom0; interface=org.freedesktop.DBus.Properties; member=Set |
Re: Is there any way to change IM status (telepathy) using the console command?
Thanks for the answer.
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? That would be better because everyone could use the same script. |
Re: Is there any way to change IM status (telepathy) using the console command?
Quote:
Code:
/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 |
Re: Is there any way to change IM status (telepathy) using the console command?
beside dbus there is also a tool called mc-tool i think. Its part of the osso-mission-control package and can be used to setup, modify or manage the IM accounts. No idea if it's supported to be used in any way, on n800 I used it to set a dedicated network interface for a sip account (tun0 instead of wlan0). On n900 i had it installed but only used it to list the configured accounts up to now. Unfortunately i just had to reflash my n900, so i can't test if it can be used to actually change the status.
|
Re: Is there any way to change IM status (telepathy) using the console command?
A bit off-topic, but on the N8X0,
I use Pidgin + Conler Connection Handler + purple-remote "setstatus?status=away&message=I'm not here" which works for me. I also use pidgin --l=SCREENNAME with Conler. Also if you want a different approach then dbus-scripts-settings may help. Just throwing that stuff out there. |
Re: Is there any way to change IM status (telepathy) using the console command?
Thanks, I will try it over the weekend :)
|
Re: Is there any way to change IM status (telepathy) using the console command?
Sadly I don't know any reliable way to detect if gprs0 is active or not because of https://bugs.maemo.org/show_bug.cgi?id=7731
Does anybody know a solution for this? |
All times are GMT. The time now is 10:39. |
vBulletin® Version 3.8.8