Checking DISPLAY is insufficient (I tried).
bryce@salisbury:~/src/gtg/gtg-nox$ echo $DISPLAY localhost:11.0
Neither gtk nor pygtk throws an exception in this case, so can't solve it that way.
Fortunately I found a simple solution, to just try running xset and check the error on that.
Branch with my proposed fix is at https://code.launchpad.net/~bryceharrington/gtg/gtg-nox
Checking DISPLAY is insufficient (I tried).
bryce@ salisbury: ~/src/gtg/ gtg-nox$ echo $DISPLAY
localhost:11.0
Neither gtk nor pygtk throws an exception in this case, so can't solve it that way.
Fortunately I found a simple solution, to just try running xset and check the error on that.
Branch with my proposed fix is at https:/ /code.launchpad .net/~bryceharr ington/ gtg/gtg- nox