projects
/
deb_pkgs
/
autorandr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36f5154
)
Print configuration differences for failed actions if --debug is set
author
Phillip Berndt
<phillip.berndt@googlemail.com>
Mon, 8 Jun 2015 10:35:44 +0000
(12:35 +0200)
committer
Phillip Berndt
<phillip.berndt@googlemail.com>
Wed, 11 Nov 2015 10:22:24 +0000
(11:22 +0100)
autorandr.py
patch
|
blob
|
history
diff --git
a/autorandr.py
b/autorandr.py
index 9db5774bc4317c1762b3d9323b970705adb67e71..feee62b58bc4f2e220c9295b9e5b18f32c7194f7 100755
(executable)
--- a/
autorandr.py
+++ b/
autorandr.py
@@
-799,6
+799,12
@@
def main(argv):
except Exception as e:
raise AutorandrException("Failed to apply profile '%s'" % load_profile, e, True)
+ if "--dry-run" not in options and "--debug" in options:
+ new_config, _ = parse_xrandr_output()
+ if not is_equal_configuration(new_config, load_config):
+ print("The configuration change did not go as expected:")
+ print_profile_differences(new_config, load_config)
+
sys.exit(0)
if __name__ == '__main__':