Any plugin available to set Clementine's current playing song as empathy status
[update]
I've tried it and was not succesful, here is my problem
but I've figured out that it is not possible to set status of empathy through dbus
regards
[update] answer found on stack overflow link given above
2 Answers
It has been suggested that this Stack Overflow Question answers the subject:
import dbus
session_bus = dbus.SessionBus()
player = session_bus.get_object('org.mpris.clementine', '/Player')
iface = dbus.Interface(player, dbus_interface='org.freedesktop.MediaPlayer')
metadata = iface.GetMetadata()
status = "♫ ".decode('utf8')+metadata["title"]+' - '+metadata["album"]+" ♫".decode('utf8')
print status
from gi.repository import TelepathyGLib as Tp
from gi.repository import GObject
loop = GObject.MainLoop()
am = Tp.AccountManager.dup()
am.prepare_async(None, lambda *args: loop.quit(), None)
loop.run()
am.set_all_requested_presences(Tp.ConnectionPresenceType.AVAILABLE,
'available', status) 1 The script suggested in comments worked for me after a aptitude install libtelepathy-glib-dev.