Version History
---------------
+- 2.3.0 (Jul 2020)
+
+ Implement 'auto-start in GUI' feature.
+
+ The program tries to detect whether it was invoked from a terminal or
+ not, and if not, it will automatically switch to GUI mode. Useful for
+ invocation via e.g. dmenu(1).
+
- 2.2.1 (Jun 2020)
Complete fixes recommended by pylint(1).
fitness=fitness, rate=travel_mode,
units=units)
+ # auto-start in GUI mode if the program is not invoked from terminal
+ if len(sys.argv) == 1 and not sys.stdin.isatty():
+ gui = True
+
if gui:
from . import gui
gui.startup()