I thought this might fix the crashing problems with the Python
player, since you should initialize Gdk threads before initializing
Gtk, and Gtk is initialized on import from gi.repository.
It didn't fix the problems, but it's a good thing to do anyway.
import sys
import os.path
import argparse
+from gi.repository import Gdk
+Gdk.threads_init()
from gi.repository import GObject, GLib, Gdk, Gio, Gtk, Chimara
import config
metavar='GRAPHICS FILE', help='a Blorb resource file to include')
args = parser.parse_args()
- Gdk.threads_init()
-
# Create configuration dir ~/.chimara
try:
os.mkdir(os.path.expanduser('~/.chimara'))