[pitivi] bin: Move the XInitThreads call so it's executed earlier
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] bin: Move the XInitThreads call so it's executed earlier
- Date: Thu, 11 Jun 2015 09:17:43 +0000 (UTC)
commit ff8f63efccaa236dddf5f319b85d9144df7854af
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue May 5 16:21:54 2015 +0200
bin: Move the XInitThreads call so it's executed earlier
bin/pitivi.in | 8 ++++++++
pitivi/application.py | 8 --------
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/bin/pitivi.in b/bin/pitivi.in
index 51f4f24..6d94d87 100644
--- a/bin/pitivi.in
+++ b/bin/pitivi.in
@@ -26,6 +26,14 @@ import signal
import locale
import gettext
+from ctypes import cdll
+try:
+ x11 = cdll.LoadLibrary('libX11.so')
+ x11.XInitThreads()
+except OSError:
+ pass
+
+
if "APPDIR" in os.environ:
basedir = os.environ["APPDIR"]
CONFIGURED_PYTHONPATH = ""
diff --git a/pitivi/application.py b/pitivi/application.py
index 0898b94..d8874d7 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -24,14 +24,6 @@
import os
import time
-from ctypes import cdll
-
-try:
- x11 = cdll.LoadLibrary('libX11.so')
- x11.XInitThreads()
-except OSError:
- pass
-
from gi.repository import GObject
from gi.repository import Gio
from gi.repository import Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]