From: Phillip Berndt Date: Thu, 19 Apr 2018 20:16:53 +0000 (+0200) Subject: Bugfix: Do not load default profile unless --change is set (fixes #105) X-Git-Tag: 1.6~13 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=4849bd3c35b471b3bfb772a7178060f4f8f8dd61 Bugfix: Do not load default profile unless --change is set (fixes #105) --- diff --git a/README.md b/README.md index 999f353..7518128 100644 --- 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 diff --git a/autorandr.py b/autorandr.py index db95507..275b0c6 100755 --- a/autorandr.py +++ b/autorandr.py @@ -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 make profile the default profile -l, --load load profile -s, --save save your current setup to 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: