Skip to content
Snippets Groups Projects
Commit bbf495c3 authored by nkour's avatar nkour
Browse files

check and do not work if < 2.6

parent 788a4dc7
No related branches found
No related tags found
No related merge requests found
......@@ -26,15 +26,20 @@
import pygtk
import os
if not os.name == 'nt': # py2exe only in windows
pygtk.require('2.0') # py2exe fails on this
try:
import gtk
except RuntimeError, msg:
if str(msg) == 'could not open display':
print >> sys.stderr, _('Gajim needs Xserver to run. Quiting...')
sys.exit()
if gtk.pygtk_version < (2, 6, 0):
print >> sys.stderr, _('Gajim needs PyGTK 2.6+ to run. Quiting...')
sys.exit()
elif gtk.gtk_version < (2, 6, 0):
print >> sys.stderr, _('Gajim needs GTK 2.6+ to run. Quiting...')
sys.exit()
import gtkexcepthook
import gobject
gobject.threads_init()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment