blob: ae458a3bb2b1ef41ea3121941ec0e30b0c730891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- main/__init__.py 2009-09-20 20:02:48 +0000
+++ main/__init__.py 2010-05-08 15:41:26 +0000
@@ -16,8 +16,11 @@
# case the DISPLAY variable doesn't contain the screen number)
DISPLAY = vfs.escape_path(gtk.gdk.Display(os.environ["DISPLAY"]).get_name()).replace("/", "_")
except:
- print "Error: could not open display", os.environ["DISPLAY"]
- sys.exit(1)
+ try:
+ print >> sys.stderr, "Error: could not open display", os.environ["DISPLAY"]
+ except:
+ print >> sys.stderr, "(could not get DISPLAY environment variable)"
+ DISPLAY = "0"
|