Foro » Development Discussion

DBus Extension

    • tarsus4 escribió...
    • Usuario
    • 4 Abr 2008, 15:54

    DBus Extension

    I've written an extension to control the application via DBus. It provides a means to control all the public slots in the Radio class (playStation, resumeStation, stop, skip, and setVolume), and also makes available the name of the current track (as "Artist - Title"), and provides a signal to indicate when a new track starts.

    This makes it possible to write broader "media control applications" if you're interested in making the app part of a home media system (as I am).

    At the moment, the Qt docs say that DBus support is only part of the unix build. I don't know how true that is, or if it will remain that way forever, because I know KDE4 uses DBus, and they expect to be able to port (have ported?) to OSX and Windows. I personally have tested under Gentoo Linux.

    Source is at

    • raboof escribió...
    • Suscriptor
    • 6 Dic 2009, 22:55
    great work.

    qmake pointed to the qt3-qmake for me, so i needed to change that with 'update-alternatives --config qmake' (Ubuntu Karmic).

    I do end up with a bin/extensions/, but it doesn't appear to be loaded. I don't see anything interesting in ~/.local/share/ when I start ./bin/ - what should I be looking for?

    • tarsus4 escribió...
    • Usuario
    • 7 Dic 2009, 12:39
    Jeez, it's been a while since I've worked on this. I realized after writing it that there were a few changes I should've made to interface names, etc. And in the intervening time Amarok 2 came out, which has largely negated the need for this plugin.

    To get it to work, the .so file needs to be with the rest of the extensions, so knows to load it. I'm not sure where this folder is in your particular distro, I would check the file list for the package.

    • Myren escribió...
    • Usuario
    • 13 Ene 2010, 4:56


    Have you considered the MPRIS spec? It defines a dbus interface for media players.

    • tarsus4 escribió...
    • Usuario
    • 25 Ene 2010, 19:45


    I updated the plugin to follow the MPRIS DBus interface definitions. should now be compatible with any generic MPRIS remote or tester.

Los usuarios anónimos no pueden escribir mensajes. Para participar en los foros inicia sesión o crea una cuenta.