[brasero] Also initialize thread when starting libbrasero-media
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Also initialize thread when starting libbrasero-media
- Date: Thu, 10 Sep 2009 19:17:59 +0000 (UTC)
commit ead7ab5395f43273a58770493b5bf47659cce4fc
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Thu Sep 10 20:26:51 2009 +0200
Also initialize thread when starting libbrasero-media
libbrasero-burn/burn-basics.c | 2 +-
libbrasero-media/brasero-media.c | 19 +++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-burn/burn-basics.c b/libbrasero-burn/burn-basics.c
index 8c244dc..17cab17 100644
--- a/libbrasero-burn/burn-basics.c
+++ b/libbrasero-burn/burn-basics.c
@@ -209,7 +209,7 @@ brasero_burn_library_start (int *argc,
{
GConfClient *client;
- BRASERO_BURN_LOG ("Initializing Brasero-%i.%i.%i",
+ BRASERO_BURN_LOG ("Initializing Brasero-burn %i.%i.%i",
BRASERO_MAJOR_VERSION,
BRASERO_MINOR_VERSION,
BRASERO_SUB);
diff --git a/libbrasero-media/brasero-media.c b/libbrasero-media/brasero-media.c
index 3d46f2f..264b687 100644
--- a/libbrasero-media/brasero-media.c
+++ b/libbrasero-media/brasero-media.c
@@ -524,6 +524,25 @@ brasero_media_library_start (void)
return;
}
+ BRASERO_MEDIA_LOG ("Initializing Brasero-media %i.%i.%i",
+ BRASERO_MAJOR_VERSION,
+ BRASERO_MINOR_VERSION,
+ BRASERO_SUB);
+
+#if defined(HAVE_STRUCT_USCSI_CMD)
+ /* Work around: because on OpenSolaris brasero posiblely be run
+ * as root for a user with 'Primary Administrator' profile,
+ * a root dbus session will be autospawned at that time.
+ * This fix is to work around
+ * http://bugzilla.gnome.org/show_bug.cgi?id=526454
+ */
+ g_setenv ("DBUS_SESSION_BUS_ADDRESS", "autolaunch:", TRUE);
+#endif
+
+ /* Initialize external libraries (threads... */
+ if (!g_thread_supported ())
+ g_thread_init (NULL);
+
/* Initialize i18n */
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]