Bug 1138 - Force Workrave mode on startup
Status:
NEW
Component:
Core
Version:
1.10
Hardware:
All Linux
Importance:
P5 enhancement
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Dec 4 2013 12:00:42 UTC
by:
d3vid seaward
Modified:
Feb 3 2014 20:10:57 UTC
WhoWhenWhatRemovedAdded
Rob CaelersFeb 3 2014 20:10:57 UTCseveritynormalenhancement
Description
d3vid seaward  Dec 4 2013 12:00:42 UTC
Whenever I start Workrave it seems to remember the last mode it was in. I would like the option for it to always start in a predefined mode. Is this possible?

(My specific use-case is that I may set it to Quiet and forget about it. Next time I start my computer, I'd like it to be in Normal mode.)

A GUI option would be ideal. Failing that, is there a gsetting value I can set? (Then I can write a script for myself.)
Comment 1
d3vid seaward  Feb 3 2014 10:14:23 UTC
This can be achieved from the command-line (and therefore a script or trigger) using dbus or dconf...

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

or

    dconf write /org/workrave/general/operation-mode 0

Using dconf requires the fix to #1146

I'm leaving this open as a request to add this as a GUI option (that is, could be closed if out of scope/support).