]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Fix #66: Encode int to str in environ
authorPhillip Berndt <phillip.berndt@googlemail.com>
Sat, 21 Jan 2017 10:55:24 +0000 (11:55 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Sat, 21 Jan 2017 10:55:24 +0000 (11:55 +0100)
autorandr.py

index ad4b22b0fbeec18e7e89695d4c9a481f76cc74a9..8d561fd85874d1b1d50499344744119715744f53 100755 (executable)
@@ -844,7 +844,7 @@ def dispatch_call_to_sessions(argv):
         display = process_environ["DISPLAY"] if "DISPLAY" in process_environ else None
 
         # To allow scripts to detect batch invocation (especially useful for predetect)
-        process_environ["AUTORANDR_BATCH_PID"] = os.getpid()
+        process_environ["AUTORANDR_BATCH_PID"] = str(os.getpid())
 
         if display and display not in X11_displays_done:
             try: