]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Merge pull request #22 from victorhaggqvist/patch-1
authorPhillip Berndt <phillip.berndt@googlemail.com>
Tue, 24 Mar 2015 10:41:32 +0000 (11:41 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Tue, 24 Mar 2015 10:41:32 +0000 (11:41 +0100)
Fix `block` script filename in Python version

autorandr.py

index 8053b12c0e0ebe3f0b4dcf5a81b0a3f7f1b66a77..8c304030f6f04e717e897cdeb240292de1461a3d 100755 (executable)
@@ -390,7 +390,7 @@ def find_profiles(current_config, profiles):
 
 def profile_blocked(profile_path):
     "Check if a profile is blocked"
-    script = os.path.join(profile_path, "blocked")
+    script = os.path.join(profile_path, "block")
     if not os.access(script, os.X_OK | os.F_OK):
         return False
     return subprocess.call(script) == 0