From: Phillip Berndt Date: Sat, 21 Jan 2017 10:55:24 +0000 (+0100) Subject: Fix #66: Encode int to str in environ X-Git-Tag: 1.1~5 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=a02f2f6968167170cc335f9dc39d06b91aa15027;hp=20fe858e0852cf40dc9b7e045f9e66bebc4ca022 Fix #66: Encode int to str in environ --- diff --git a/autorandr.py b/autorandr.py index ad4b22b..8d561fd 100755 --- a/autorandr.py +++ b/autorandr.py @@ -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: