Skip to content

Commit

Permalink
handle GTK+ init errors gracefully
Browse files Browse the repository at this point in the history
For example if the DISPLAY env variable is incorrect


git-svn-id: https://fslint.googlecode.com/svn/trunk@292 494acc53-a219-0410-adff-8f8ff343f446
  • Loading branch information
pixelb committed Apr 23, 2014
1 parent b3a64bb commit 13405c1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions fslint-gui
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@
which is available at www.gnu.org
"""

import types, os, sys, pipes, time, stat, tempfile, errno

import gettext
import locale
import gtk
import gtk.glade

import types, os, sys, pipes, time, stat, tempfile, errno
try:
import gtk
except RuntimeError:
etype, emsg, etb = sys.exc_info()
sys.stderr.write(str(emsg)+'\n')
sys.exit(1)

import gtk.glade

time_commands=False #print sub commands timing on status line

Expand Down

0 comments on commit 13405c1

Please sign in to comment.