Re: getting workrave to notice gconf changes to /apps/workrave/gui/operation-mode

Joe Wells <[email protected]>
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
Rob Caelers <[email protected]> writes:

>>> dbus-send --type=method_call --dest=org.workrave.Workrave
>>>   /org/workrave/Workrave
>>>   org.workrave.WorkraveInterface.SetOperationMode string:'quiet'
>> 
>> Sadly, it does not work for me.  I'm using Workrave 1.8.5 that comes
>
> I just installed Ubuntu 8.04 in a virtual box virtual machine to check. It
> seems that DBus is not correctly initialized when Workrave is started (by the
> applet) on logon. If you kill workrave and start it manually from command line
> or from the menu, Dbus seems to work fine for me...

Thanks very much for this information.  Killing and restarting
Workrave makes the DBus command you gave above work for me.

I think the Workrave that was not accepting the DBus command for me
had been started by the session manager because Workrave was running
in the previous session.  The restart command would have looked
something like this (taken from my ~/.gnome2/session file):

  5,RestartCommand=workrave --sm-config-prefix /workrave-K0VCKC/ --sm-client-id 117f000001000126621500900000047911487 --screen 0 --display :0.0 

Is there anything in that command that would prevent DBus from
working?

Also, is there a good way to generate a list of all the possible DBus
controls for Workrave?

-- 
Thanks,

Joe


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.