From: Xin Wang Date: Thu, 16 Aug 2012 23:57:08 +0000 (+0800) Subject: Print error message to stderr (Fix bug 5731) X-Git-Tag: mikabox-3.5-7~54 X-Git-Url: http://git.openbox.org/?p=mikachu%2Fopenbox.git;a=commitdiff_plain;h=c6997ba19ee5fdbaca49c55c8802f6b75a74c65f Print error message to stderr (Fix bug 5731) As stdout is redirected to /dev/null by some DMs, we need to print error messages to stderr. --- diff --git a/data/autostart/openbox-xdg-autostart b/data/autostart/openbox-xdg-autostart index ea76028..04a17a1 100755 --- a/data/autostart/openbox-xdg-autostart +++ b/data/autostart/openbox-xdg-autostart @@ -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)