From a02f2f6968167170cc335f9dc39d06b91aa15027 Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Sat, 21 Jan 2017 11:55:24 +0100 Subject: [PATCH] Fix #66: Encode int to str in environ --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: