Disabling status window is not permanent

Bug #160228 reported by Colan Schwartz
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Workrave
Unknown
Unknown
workrave (Ubuntu)
Fix Released
Undecided
JC Hulce

Bug Description

Binary package hint: workrave

In Gutsy, I can right click someone on the status window or the panel application, select "Preferences", go to User interface -> Status Window and then uncheck "Show status window". This only works temporarily, however. Whenever I quit and then restart, the status window is still shown. It's as is the setting was never saved.

Revision history for this message
François Marier (fmarier) wrote :

Hi Colan,

I've got a backport of the latest version of the workrave package from Debian (1.8.5-6) in my personal package archive:

  deb http://ppa.launchpad.net/fmarier/ubuntu gutsy main

Could you check whether your problem is fixed in that version (which is essentially the same as Hardy)?

Thanks,

Francois

Revision history for this message
Colan Schwartz (colan) wrote :

Nope, it's not fixed. I tried that version, and the "Show status window" option still doesn't stay unchecked. :(

Revision history for this message
François Marier (fmarier) wrote :

Can you post the output of "gconftool-2 -R /apps/workrave" at these times:

1- before unchecking "Show status window"
2- after unchecking it
3- after restarting (when the status window is back and the setting ignored)

Thanks.

Revision history for this message
Colan Schwartz (colan) wrote :

I've attached the output. Thanks for looking into this, by the way.

Revision history for this message
François Marier (fmarier) wrote :

The only difference between those three (if we exclude the y-position of the window) is this setting:

   /apps/workrave/gui/main_window/enabled

Which goes from "true" to "false" to "true" as expected from your description.

The fact that it goes from "false" (hide the window) to "true" (show it) after restarting is where the problem lies.

Now the thing I am wondering is whether workrave resets that setting when it starts up or shuts down. So here's how we could verify that:

1- start workrave and hide the window
2- quit workrave and dump the settings:
      gconftool-2 -R /apps/workrave/gui/main_window
3- start workrave again (without logging out and logging back in) and note whether the window is hidden
4- dump the settings:
      gconftool-2 -R /apps/workrave/gui/main_window

Revision history for this message
Colan Schwartz (colan) wrote :

After quiting & dumping the settings:

 y = 47
 cycle_time = 10
 head = 0
 enabled = false
 x = 5

Now when I start it up, the box is still unchecked, but the status window shows up anyway.

Settings dump:

 y = 22
 cycle_time = 10
 head = 0
 enabled = false
 x = 5

Revision history for this message
In , François Marier (fmarier) wrote :

I haven't been able to reproduce this problem, but this Ubuntu user gets it consistently:

"I can right click someone on the status window or the panel application, select "Preferences", go to User interface -> Status Window and then uncheck "Show status window". This only works temporarily, however. Whenever I quit and then restart, the status window is still shown. It's as is the setting was never saved."

Looking at gconf dumps (see the launchpad bug for the logs that he did), it looks like workrave hides the window and sets the setting correctly, but then we he quits and starts workrave again, while the setting is still fine, the window is not hidden.

I don't really know how to investigate that problem further. So perhaps you'll have some ideas about what to do next.

Revision history for this message
François Marier (fmarier) wrote :

Hi Colan,

I have sent your problem to the Workrave developers' bugzilla. You can log on there if you want to respond to them directly or provide extra information.

  http://issues.workrave.org/cgi-bin/bugzilla/show_bug.cgi?id=730

Cheers,

Francois

Changed in workrave:
status: Unknown → Confirmed
Revision history for this message
In , Rob Caelers (rob-caelers) wrote :

I also can't reproduce this problem, but:

It seems Workrave only enables the status window without user intervention if the window is de-iconized. This does not seem to happen at startup when using gnome/compiz. Perhaps the user is using a different window manager that somehow generates a de-iconize event.

Anyways. I removed the offending code. Workrave now only enables the status window when the user explicitly enables it in the preferences.

Changed in workrave:
status: Confirmed → Fix Released
Revision history for this message
Greg A (etulfetulf) wrote :

Please can you confirm if this is still an issue in Hardy/Intrepid?

Daniel T Chen (crimsun)
Changed in workrave:
status: New → Incomplete
Revision history for this message
Martin Pool (mbp) wrote :

I can still reproduce this in Jaunty and Intrepid.

Changed in workrave:
status: Incomplete → Confirmed
Revision history for this message
JC Hulce (soaringsky) wrote :

Updated upstream bug url

Changed in workrave:
status: Fix Released → Unknown
Revision history for this message
JC Hulce (soaringsky) wrote :

Upstream fixed this issue and the fixed version appears to be in Ubuntu, so I am closing this bug.

Changed in workrave (Ubuntu):
assignee: nobody → JC Hulce (soaringsky)
status: Confirmed → Fix Released
Changed in workrave:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Gao Shichao (xgdgsc) wrote :

It's weird that I still see the same thing here with the latest version in 12.04

Revision history for this message
Gao Shichao (xgdgsc) wrote :

I figured out that if I autostart workrave with simply "workrave" command, the status window shows.

While if I autostart workrave with the following script, status window doesn't show, and problem solved.

#/bin/sh
sleep 20s
workrave &

For sleep like 2 seconds, status window still shows.
Weird though, problem solved.

Revision history for this message
Ash (ash1991) wrote :

This bug still affects me on Precise.

Revision history for this message
Ash (ash1991) wrote :

The Workaroud suggested by "Gao Shichao (xgdgsc)" worked for me but it's not a fix it's a workaround.

Revision history for this message
Andres Sanchez Lozano (andressano) wrote :

I found a temporary solution compiz based for unity.

1. Install compizconfig-settings-manager.
2. Run ccsm.
3. In Window Management category, enable and edit Window Rules.
4. Select Matches Tab and then set value class=Workrave in Skip Taskbar.
5. Restart unity.

This should cover Workrave failure, or I think I found another bug :P

Revision history for this message
Andreas Jonsson (sonofjon) wrote :

Problem still present in raring,

Revision history for this message
Andreas Jonsson (sonofjon) wrote :

The workaround in #15 above did not work for me. I had to increase the sleep time to 60s to make it work.

William Grant (wgrant)
Changed in workrave:
importance: Medium → Unknown
status: Fix Released → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.