Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37579833
en ru br
Репозитории ALT
S:3.4.7-alt2
5.1: 0.12.6-alt0.M51.1
4.1: 0.11.6-alt1.M41.1
4.0: 0.9.7-alt1.0.M40.1
3.0: 0.8.8-alt0.5
www.altlinux.org/Changes

Группа :: Звук
Пакет: rhythmbox

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: rhythmbox-0.11.3-force-python-thread-init.patch
Скачать


diff --git a/shell/main.c b/shell/main.c
index 71dde32..5d478fa 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -73,6 +73,10 @@
 #include "rb-playlist-manager.h"
 #include "rb-playlist-manager-glue.h"
 
+#ifdef ENABLE_PYTHON
+#include "rb-python-module.h"
+#endif
+
 #define HAVE_LIBGNOME_GOPTION defined(GNOME_PARAM_GOPTION_CONTEXT)
 
 static gboolean debug           = FALSE;
@@ -322,6 +326,15 @@ main (int argc, char **argv)
 
 		rb_profile_start ("mainloop");
 #ifdef ENABLE_PYTHON
+		{
+			/* force python etc. to be loaded.
+			 * otherwise, pyg_begin_allow_threads will crash,
+			 * and even if it didn't, we wouldn't be able to provide
+			 * thread safety for plugins loaded later on.
+			 */
+			GObject *z = g_object_new (RB_TYPE_PYTHON_MODULE, NULL);
+			g_object_unref (z);
+		}
 		pyg_begin_allow_threads;
 #endif
 		gtk_main ();
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin