changeset 1060:0cd92c2f8cf4

find .Xauthority better, tools that talk to X Ignore-this: b6a9920c14e702c68785d794b28ce141 darcs-hash:fb330d329f733cd54240f524daba6c853f95238b
author drewp <drewp@bigasterisk.com>
date Mon, 21 Mar 2016 04:21:06 -0700
parents faf1f8677a91
children ef635e9b9dce
files lib/localdisplay.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/localdisplay.py	Mon Mar 21 04:18:45 2016 -0700
+++ b/lib/localdisplay.py	Mon Mar 21 04:21:06 2016 -0700
@@ -19,6 +19,7 @@
             display = ":0.0"
         assert display.startswith(':'), display
         os.environ['DISPLAY'] = display
+        os.environ['XAUTHORITY'] = os.path.expanduser('~/.Xauthority')
         break
     else:
         raise ValueError("didn't find an Xorg process")