]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Bugfix: Do not load default profile unless --change is set (fixes #105)
authorPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 19 Apr 2018 20:16:53 +0000 (22:16 +0200)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 19 Apr 2018 20:16:53 +0000 (22:16 +0200)
README.md
autorandr.py

index 999f353ceca200629b7ce82493925abba53bf65a..751812880c5c5976015b573a95603dd67d496d12 100644 (file)
--- a/README.md
+++ b/README.md
@@ -205,6 +205,8 @@ profiles matching multiple (or any) monitors.
 
 ## Changelog
 
+* *2018-04-19* Bugfix: Do not load default profile unless --change is set
+
 **autorandr 1.5**
 
 * *2018-01-03* Add --version
index db95507477819f0dbae90cd12a131a67ad48c244..275b0c652d7a0ea22e570d57129b165c71c11336 100755 (executable)
@@ -68,7 +68,7 @@ help_text = """
 Usage: autorandr [options]
 
 -h, --help              get this small help
--c, --change            reload current setup
+-c, --change            automatically load the first detected profile
 -d, --default <profile> make profile <profile> the default profile
 -l, --load <profile>    load profile <profile>
 -s, --save <profile>    save your current setup to profile <profile>
@@ -1243,7 +1243,7 @@ def main(argv):
 
     if "-d" in options:
         options["--default"] = options["-d"]
-    if not load_profile and "--default" in options:
+    if not load_profile and "--default" in options and "--change" in options:
         load_profile = options["--default"]
 
     if load_profile: