Saturday, August 28, 2010

Howto Enable #mpris support in #qmmp | #debian #ubuntu #linux

Seems there is support for mpris mpris-remote - utility that controls an MPRIS-capable music player



I wanted http remote control but mpris should suffice for the moment over ssh 


I listen to the main borkstationX64 attached to the 5.1 system and i'm lazy moving all the time to change the songs 
so i need  a solution to change it from my netbook ...






git clone git://github.com/mackstann/mpris-remote.git

./mpris-remote 
[playing 5631/10835] @ 4:54/7:50 - #6
  artist: Metallica
  title: Am_I_Evil
  album: Garage_Inc_Disc_II
[repeat off] [random on] [loop on]
./mpris-remote next








cool stuff : there are amarok , foobar interfaces for qmmp in the works :P
why do i need ssh -X for mpris ? , maybe because of dbus ...
 mpris-remote
Traceback (most recent call last):
  File "/usr/bin/mpris-remote", line 104, in 
    bus = dbus.SessionBus()
  File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 219, in __new__
    mainloop=mainloop)
  File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 108, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 125, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

tip: cp mpris-remote /usr/bin/mpris

No comments: