So Noise listens for when the system goes to sleep (via libgdbus) and pauses its music, or the music of other players?
On 06/08/2015 06:45 PM, Cameron Norman wrote: > Yeah you can just add the code into Noise itself and use the libgdbus > vala bindings > > http://valadoc.org/#!wiki=dbus-glib-1/index > > On Mon, Jun 8, 2015 at 3:33 PM, Jason Anderson <email address hidden> wrote: >> So I can use gdbus to listen for PrepareForSleep()? When that does come >> up, how can I exactly pause the music? I mean, don't I need to be on >> the user's session bus in order to pause it? >> >> On 06/08/2015 01:48 PM, Cameron Norman wrote: >>> The approach here is a deadend, as mentioned[1] in the previous comment. You need to listen for the PrepareForSleep() signal [2] in Noise and pause the music when you get that signal. >>> >>> >>> [1] https://code.launchpad.net/~ertain/elementaryos/pause-media-player-script/+merge/244673/comments/620756 >>> >>> [2] www.freedesktop.org/wiki/Software/systemd/inhibit/ >>> >> >> >> -- >> https://code.launchpad.net/~ertain/elementaryos/pause-media-player-script/+merge/244673 >> You are reviewing the proposed merge of lp:~ertain/elementaryos/pause-media-player-script into lp:~elementary-os/elementaryos/default-settings-trusty. >
« Back to merge proposal
So Noise listens for when the system goes to sleep (via libgdbus) and
pauses its music, or the music of other players?
On 06/08/2015 06:45 PM, Cameron Norman wrote: valadoc. org/#!wiki= dbus-glib- 1/index /code.launchpad .net/~ertain/ elementaryos/ pause-media- player- script/ +merge/ 244673/ comments/ 620756 .org/wiki/ Software/ systemd/ inhibit/ /code.launchpad .net/~ertain/ elementaryos/ pause-media- player- script/ +merge/ 244673
> Yeah you can just add the code into Noise itself and use the libgdbus
> vala bindings
>
> http://
>
> On Mon, Jun 8, 2015 at 3:33 PM, Jason Anderson <email address hidden> wrote:
>> So I can use gdbus to listen for PrepareForSleep()? When that does come
>> up, how can I exactly pause the music? I mean, don't I need to be on
>> the user's session bus in order to pause it?
>>
>> On 06/08/2015 01:48 PM, Cameron Norman wrote:
>>> The approach here is a deadend, as mentioned[1] in the previous comment. You need to listen for the PrepareForSleep() signal [2] in Noise and pause the music when you get that signal.
>>>
>>>
>>> [1] https:/
>>>
>>> [2] www.freedesktop
>>>
>>
>>
>> --
>> https:/
>> You are reviewing the proposed merge of lp:~ertain/elementaryos/pause-media-player-script into lp:~elementary-os/elementaryos/default-settings-trusty.
>