]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Merge pull request #92 from blueyed/dispatch_call_to_sessions-env
authorPhillip Berndt <phillip.berndt@googlemail.com>
Tue, 21 Nov 2017 15:15:06 +0000 (16:15 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Nov 2017 15:15:06 +0000 (16:15 +0100)
dispatch_call_to_sessions: skip envs without name

autorandr.py

index abf11980ca36be22b9ece76b64d569559120ede8..ba6c5f0fcd708f3842545c793869204576399be9 100755 (executable)
@@ -865,12 +865,11 @@ def exec_scripts(profile_path, script_name, meta_information=None):
 
     candidate_directories = [user_profile_path]
     for config_dir in os.environ.get("XDG_CONFIG_DIRS", "/etc/xdg").split(":"):
-        candidate_directories += os.path.join(config_dir, "autorandr")
+        candidate_directories.append(os.path.join(config_dir, "autorandr"))
     if profile_path:
-        candidate_directories += profile_path
+        candidate_directories.append(profile_path)
 
     for folder in candidate_directories:
-
         if script_name not in ran_scripts:
             script = os.path.join(folder, script_name)
             if os.access(script, os.X_OK | os.F_OK):