]> Dogcows Code - chaz/openbox/commitdiff
Print error message to stderr (Fix bug 5731)
authorXin Wang <dram.wang@gmail.com>
Thu, 16 Aug 2012 23:57:08 +0000 (07:57 +0800)
committerDana Jansens <danakj@orodu.net>
Sun, 7 Oct 2012 01:56:57 +0000 (21:56 -0400)
As stdout is redirected to /dev/null by some DMs, we need to print error
messages to stderr.

data/autostart/openbox-xdg-autostart

index ea76028182b7b46e1fca667bf9e0a9cfcaa165b8..04a17a199476e3a0932c920a18ae02d83489b83d 100755 (executable)
@@ -29,7 +29,7 @@ try:
     from xdg.Exceptions import ParsingError
 except ImportError:
     print
-    print "ERROR:", ME, "requires PyXDG to be installed"
+    print >>sys.stderr, "ERROR:", ME, "requires PyXDG to be installed"
     print
     sys.exit(1)
 
This page took 0.021438 seconds and 4 git commands to generate.