[gnome-schedule: 2/3] xwrapper updated for at
- From: Gaute Hope <gauteh src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-schedule: 2/3] xwrapper updated for at
- Date: Tue, 12 May 2009 05:47:16 -0400 (EDT)
commit 3f2c59397fcf396fa95a44a884bd7cd9d740c552
Author: Gaute Hope <eg gaute vetsj com>
Date: Tue May 12 11:46:33 2009 +0200
xwrapper updated for at
---
src/at.py | 1 +
src/xwrapper.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/at.py b/src/at.py
index 75b9587..7eebea9 100644
--- a/src/at.py
+++ b/src/at.py
@@ -59,6 +59,7 @@ class At:
self.SCRIPT_DELIMITER = "###### ---- GNOME_SCHEDULE_SCRIPT_DELIMITER #####"
self.DISPLAY = "DISPLAY=%s; export DISPLAY;\n"
+ self.DISPLAY = self.DISPLAY + "XAUTHORITY=" + user_home_dir + "/.Xauthority; export XAUTHORITY;\n"
self.DISPLAY = self.DISPLAY + config.xwrapper_exec + " a\n"
self.DISPLAY = self.DISPLAY + """
xwrapper=$?;
diff --git a/src/xwrapper.py b/src/xwrapper.py
index 58a7e10..4bdb1cc 100755
--- a/src/xwrapper.py
+++ b/src/xwrapper.py
@@ -147,7 +147,8 @@ if job_type == 0:
# AT
elif (job_type == 1):
display = os.getenv ('DISPLAY')
- check_X (display)
+ xauth = home_dir + "/.Xauthority"
+ check_X (display, xauth)
sys.exit (0) # All fine
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]