Cannot set workrave with gconftool

Pete Crite <[email protected]> Tue, 09 Apr 2013 20:08:12 +1000
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
Hi,

I'm using Workrave 1.9.909 in Kubuntu, and have been trying to schedule
Workrave to only operate from 9 am to 5 pm. There are a few posts in the
forum about how to do this in Linux, but none seem to work for me.

The first suggestion is to use gconftool. e.g.
    $ gconftool-2 --set --type=int /apps/workrave/gui/operation-mode 1

However, this doesn't seem to work as suggested. For a start,
    $ gconftool-2 --all-dirs /apps | grep work

produces nothing, so it seems that /apps/workrave does not even exist.
Secondly, attempting to set this key produces no visible change in the
Workrave GUI, and manually changing the state in the GUI to
Normal/Quiet/Suspended does not affect the gconftool key's state.


A second suggestion was to use dbus with
    $   dbus-send --print-reply --type=method_call
--dest=org.workrave.Workrave /org/workrave/Workrave
org.workrave.WorkraveInterface.SetOperationMode string:'normal'

but this results in:
    Error org.freedesktop.DBus.Error.UnknownMethod: No such interface
`org.workrave.WorkraveInterface' on object at path /org/workrave/Workrave


Could anyone please suggest how I could get this to work?

Cheers,
Pete.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter