]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
In debug mode, output commands that will be run
authorPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 28 Apr 2016 13:38:26 +0000 (15:38 +0200)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 28 Apr 2016 13:38:26 +0000 (15:38 +0200)
autorandr.py

index a65322d90c4ea4168a4748ba47befb5423e1de85..9531f6d6705759c4b0f75b83ef9776e98e4f22ad 100755 (executable)
@@ -898,6 +898,9 @@ def main(argv):
                     "PROFILE_FOLDER": scripts_path,
                 }
                 exec_scripts(scripts_path, "preswitch", script_metadata)
+                if "--debug" in options:
+                    print("Going to run:")
+                    apply_configuration(load_config, config, True)
                 apply_configuration(load_config, config, False)
                 exec_scripts(scripts_path, "postswitch", script_metadata)
         except Exception as e: