Re: Cannot set workrave with gconftool

Rob Caelers <[email protected]> Sun, 14 Apr 2013 19:16:00 +0200
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.

Workrave in Kubuntu is probably compiled with gsettings instead of gconf. Try:

gsettings set org.workrave.general operation-mode 1

and,

gsettings list-recursively org.workrave

> 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

Interfaces names have changed some while ago... Try:

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

Groetjes,
   Rob


------------------------------------------------------------------------------
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