herrie-users  

Re: [Herrie-Users] About getting what's playing

Schneider
Sun, 21 Dec 2008 21:03:21 -0800

Hey, that's better than I expected :D
I will build it with the patch, thanks!

Schneider

2008/12/21 Steve Jothen <sjot...@gmail.com>

> On Sun, Dec 21, 2008 at 5:48 AM, Ed Schouten <e...@80386.nl> wrote:
>
>> Hello,
>>
>> * Schneider <dudekt...@gmail.com> wrote:
>> > I wonder if it's possible to get information about what I'm playing, to
>> put
>> > on a conkyrc or something. Herrie stores this kind of info, puts on a
>> file
>> > or something?
>>
>> The latest Herrie snapshot has DBus-support, so if we would add this, we
>> should do this through DBus. Unfortunately I'm *very* busy lately (work,
>> school, etc). Any volunteers?
>>
>> --
>>  Ed Schouten <e...@80386.nl>
>>  WWW: http://80386.nl/
>
>
> I've attached a patch that adds support for this using DBus. I think just
> locking the GUI mutex should be enough, but I'm not sure if the song
> information is updated in other places? Here are some examples of using it:
>
> Nothing playing:
>
> % dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie
> info.herrie.Herrie.getSong
> method return sender=:1.38 -> dest=:1.40 reply_serial=2
>    string ""
>
> Something playing:
>
> % dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie
> info.herrie.Herrie.getSong
> method return sender=:1.38 -> dest=:1.41 reply_serial=2
>    string "J. S. Bach - Menuett G-Dur, BWV Anh. 116"
>
> Feel free to change it if you like,
>
> Steve
>
>
>