Rob Caelers | 9 Feb 2010 18:49
Gravatar

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

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

(Continue reading)

Luke Maslany | 10 Feb 2010 16:21
Picon
Favicon

Known issues on a Windows TS/RDS server?

Has anyone tried Workrave on a Windows Terminal Server/Remote Desktop Services server?

 

Are there any known issues or caveats I should be aware of before trying it in such a multi-user environment?

 

Many thanks,

 

Luke

 

 

------------------------------------------------------------------------------
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
_______________________________________________
Workrave-user mailing list
Workrave-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/workrave-user
Joe Wells | 14 Feb 2010 18:44
Picon
Favicon

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

Rob Caelers <robc <at> krandor.org> writes:

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

That sounds lovely!

Sadly, it does not work for me.  I'm using Workrave 1.8.5 that comes
with Ubuntu Hardy Heron (Ubuntu 8.04).  The command you give fails
silently.  When I add the “--print-reply” option of dbus-send, I get
this error message:

  Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.workrave.Workrave was not provided
by any .service files

I am not sure what is wrong here.  When I run “ldd /usr/bin/workrave |
grep dbus”, I get this output:

	libdbus-glib-1.so.2 => /usr/lib/libdbus-glib-1.so.2 (0xb70d6000)
	libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb70a1000)

So it seems that Workrave has been compiled with Dbus support.  I
don't know enough to know what is meant by the complaint about
.service files.

Oh, well!

Meanwhile, I have a cron job that runs every half hour which inspects
the gconf setting of /apps/workrave/gui/operation-mode and if twice in
a row it sees that Workrave is not in normal mode it starts popping up
annoying windows to remind me to switch Workrave back into normal
mode.

-- 
Joe

> 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

------------------------------------------------------------------------------
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
_______________________________________________
Workrave-user mailing list
Workrave-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/workrave-user
Rob Caelers | 14 Feb 2010 20:31
Gravatar

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

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

Groetjes,
  Rob

------------------------------------------------------------------------------
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
Joe Wells | 15 Feb 2010 07:44
Picon
Favicon

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

Rob Caelers <robc <at> krandor.org> 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
Rob Caelers | 16 Feb 2010 20:15
Gravatar

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

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

Not as far as I can see. I have no idea what is going wrong; when I compiled
1.8.5 with debug, the problem was gone...

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

You can have a look at

http://github.com/rcaelers/workrave/blob/v1_8_5/backend/src/workrave-service.xml

or install d-feet. This tool will show all services on the bus and the
objects/interfaces/methods and signals they provide.

Groetjes,
  Rob

------------------------------------------------------------------------------
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
Michael Campbell | 17 Feb 2010 17:50

Can a "break" automatically reset a mini-break?


I couldn't find anything like this in the settings, but I was wondering if it's possible to have a
configuration such that when a 'break' fires and is completed, it automatically resets the mini-break timer.

The situation is that assume I have a mini-break scheduled every 10 minutes; if I have my 5 minute normal
break done, I don't want a mini-break 1 or 2 minutes after that.  The "big" break should reset the "small"
break so that its timer restarts when the big break is over, too.

Or have I misunderstood something?

Thanks!

--

-- 
Michael Campbell <michael.campbell <at> unixgeek.com>

------------------------------------------------------------------------------
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
arnaud casse | 23 Feb 2010 15:32
Picon
Favicon

Bug with pictures missing

Hi !

Sorry to not use the issue tracker but I don't know why, he refuses to send me the confirmation mail. I came here so.

My problem is that Workrave don't show icons and generally pictures (show the jpg for more information) and also can't in a first time open the preference panel ("invalid byte sequence in conversion input") even if when I rerun Workrave it works fine.

For the moment, the only workaround that I have found is to install a previous version (1.6.2 pictures works, for example) because all I tried was unsuccessful : restart and reinstall a multiple times Workrave, install with an independant GTK or within in a "complete version", restart the computer... What I should do ? I miss the 1.9 features (control the volume...).

Workrave 1.9 worked well beforce I reinstall Windows (by the way, I'm on Windows XP SP3) and is buggy since I am on a fresh install.

I'm at your disposition if you need !

Caranud

Avec Internet Explorer, surfez en toute discrétion sur internet Cliquez ici !
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Workrave-user mailing list
Workrave-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/workrave-user
Daniel Benamy | 23 Feb 2010 01:10
Picon
Gravatar

Changing inactive behavior

Hi,

Workrave is awesome and I really appreciate the work gone into creating 
it. I do have one problem- I want to pause the timers on inactivity, but 
they often reset while I'm reading a web page or something which doesn't 
involve typing or moving the mouse. I still have my hands at the 
keyboard so I still need to take a break and I'm missing them. I've seen 
some discussion of this issue [1] and would like to voice a me too.

Some possible solutions:
* Change the time workrave considers to be inactivity. On my install 
(1.9.1) it seems to wait about 7 seconds and then starts resetting the 
timers. I'd like to try that value at around 1 minute.
* Have the timers suspend when inactive like they do now, but not reset.
* Have a separate option in the prefs for resetting. This could be a 
binary switch or a configurable time. This lets people set things up the 
way they like at the cost of making the prefs more complicated.

I'd like to know if any of these would be a problem for anyone. I might 
whip up a patch.

Best,
Dan

[1] 
https://sourceforge.net/mailarchive/forum.php?thread_name=851375.34416.qm <at> web110406.mail.gq1.yahoo.com&forum_name=workrave-user

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Joe Wells | 23 Feb 2010 19:09
Picon
Favicon

Re: Changing inactive behavior

Daniel Benamy <dbenamy <at> gmail.com> writes:

> Hi,
>
> Workrave is awesome and I really appreciate the work gone into creating 
> it. I do have one problem- I want to pause the timers on inactivity, but 
> they often reset while I'm reading a web page or something which doesn't 
> involve typing or moving the mouse. I still have my hands at the 
> keyboard so I still need to take a break and I'm missing them. I've seen 
> some discussion of this issue [1] and would like to voice a me too.
>
> Some possible solutions:
> * Change the time workrave considers to be inactivity. On my install 
> (1.9.1) it seems to wait about 7 seconds and then starts resetting the 
> timers. I'd like to try that value at around 1 minute.

There are some settings available in GConf that can affect this, but
it would be nice if there was a section in the preferences panel to
control them.  And of course it would be great if this section had
proper help text that explained how they worked.

> * Have the timers suspend when inactive like they do now, but not
> reset.

Your idea is that the timers would only reset after counting down all
the way and _then_ going through the reset time?  That is
interesting.  I think that could be useful.

-- 
Joe

> * Have a separate option in the prefs for resetting. This could be a 
> binary switch or a configurable time. This lets people set things up the 
> way they like at the cost of making the prefs more complicated.
>
> I'd like to know if any of these would be a problem for anyone. I might 
> whip up a patch.
>
> Best,
> Dan
>
>
> [1] 
> https://sourceforge.net/mailarchive/forum.php?thread_name=851375.34416.qm <at> web110406.mail.gq1.yahoo.com&forum_name=workrave-user
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Workrave-user mailing list
> Workrave-user <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/workrave-user

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

Gmane