X-Git-Url: https://wylark.com/src/munter.git/blobdiff_plain/33e4069f319488d58e090211e8778cf9b0e4f7c2..refs/heads/master:/munter/munter.py diff --git a/munter/munter.py b/munter/munter.py index 8efe665..062e676 100644 --- a/munter/munter.py +++ b/munter/munter.py @@ -183,6 +183,10 @@ def main(): 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()