summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-05 20:18:09 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-05 20:18:09 +0200
commit41b747c4c2ce4a6acba4e318249641fd41e91123 (patch)
tree7072400be8690ca2a9d8ed15826d4f776504e70a
parenttypo (diff)
downloadblueshift-41b747c4c2ce4a6acba4e318249641fd41e91123.tar.gz
blueshift-41b747c4c2ce4a6acba4e318249641fd41e91123.tar.bz2
blueshift-41b747c4c2ce4a6acba4e318249641fd41e91123.tar.xz
document and demo reset_on_error
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--examples/comprehensive7
-rw-r--r--info/blueshift.texinfo7
-rwxr-xr-xsrc/__main__.py2
3 files changed, 15 insertions, 1 deletions
diff --git a/examples/comprehensive b/examples/comprehensive
index 7510744..b95e5c3 100644
--- a/examples/comprehensive
+++ b/examples/comprehensive
@@ -338,6 +338,13 @@ uses_adhoc_opts = True
'''
+reset_on_error = True
+'''
+:bool Whether to reset the colour curves if the configuration script
+ runs into an exception that it did not handle
+'''
+
+
# Get --reset from Blueshift ad-hoc settigns
doreset = parser.opts['--reset']
diff --git a/info/blueshift.texinfo b/info/blueshift.texinfo
index 55dcbed..cafba90 100644
--- a/info/blueshift.texinfo
+++ b/info/blueshift.texinfo
@@ -1096,6 +1096,13 @@ run @code{reset} and exit. This is normally done
the second time @kbd{Control+c} is pressed or
the second time a SIGTERM signal has been received.
(Or if both has happend.)
+
+@item reset_on_error
+The default value of this variable is @code{True},
+but it can be set to @code{False}. If it is set to
+false @code{False}, Blueshift will not attempt to
+reset the colour curves if the configuration script
+crashes.
@end table
The parameterless function @code{continuous_run},
diff --git a/src/__main__.py b/src/__main__.py
index 535c43a..e514728 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -216,7 +216,7 @@ trans_delta = -1
:int In what direction are with transitioning?
'''
-reset_on_error = True # TODO demo and document this
+reset_on_error = True
'''
:bool Whether to reset the colour curves if the configuration script
runs into an exception that it did not handle