[gnome-tweak-tool/gnome-3-10] work around pygobject GIL / threading bug



commit 757c4e1eb06031cf1d066047a8032dc071a8843c
Author: John Stowers <john stowers gmail com>
Date:   Wed Nov 6 23:44:47 2013 +0100

    work around pygobject GIL / threading bug

 gnome-tweak-tool |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnome-tweak-tool b/gnome-tweak-tool
index a47fa5c..baeca38 100755
--- a/gnome-tweak-tool
+++ b/gnome-tweak-tool
@@ -20,6 +20,12 @@ import locale
 import gettext
 import sys
 
+# Hack to force GIL creation
+# See: https://bugzilla.gnome.org/show_bug.cgi?id=709223
+# See: https://bugzilla.gnome.org/show_bug.cgi?id=710530
+import threading
+threading.Thread(target=lambda: None).start()
+
 import gi
 gi.require_version("Gtk", "3.0")
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]