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

Rob Caelers <[email protected]>
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
Hi,

> via a menu instead of a check box?)  So I can do “gconftool-2 --type
> int --set /apps/workrave/gui/operation-mode 0” and it does not return
> Workrave to normal mode.
> 
> It seems this is probably a bug.

Workrave does not monitor all (gconf) configuration settings. Operation mode
is one of the settings that is not monitored. Will be fixed in the next version.

> Is there a way to get Workrave to notice the changed setting of
> /apps/workrave/gui/operation-mode, other than killing and restarting
> Workrave?

You can use DBus to control workrave. Versions 1.8.x:

dbus-send --type=method_call --dest=org.workrave.Workrave
  /org/workrave/Workrave
  org.workrave.WorkraveInterface.SetOperationMode string:'quiet'

Version 1.9.0 and higher:

dbus-send --type=method_call --dest=org.workrave.Workrave
/org/workrave/Workrave/Core
 org.workrave.CoreInterface.SetOperationMode string:'normal'

Groetjes,
  Rob

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Workrave-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/workrave-user
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.