[Xfce4-commits] [apps/xfce4-volumed-pulse] 01/01: Call fork() before gtk_init().
noreply at xfce.org
noreply at xfce.org
Thu Sep 8 10:48:11 CEST 2016
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository apps/xfce4-volumed-pulse.
commit a7041b2bbb4a3cd81bf0e204713d1619b04aee3d
Author: Alistair Buxton <a.j.buxton at gmail.com>
Date: Thu Sep 8 10:47:47 2016 +0200
Call fork() before gtk_init().
Calling fork() after gtk_init() can have side-effects such as breaking DBus
in the child if gtk_init() opened a DBus connection. One such situation in
which gtk_init() will open a DBus connection is when Ubuntu menu proxies or
overlay scrollbar are enabled.
---
src/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
index f016a7c..00f84e9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -119,8 +119,6 @@ main(gint argc, gchar **argv)
g_option_context_add_main_entries (context, option_entries, NULL);
g_option_context_add_group (context, gtk_get_option_group (FALSE));
- gtk_init (&argc, &argv);
-
/* parse options */
if (!g_option_context_parse (context, &argc, &argv, &error))
{
@@ -158,6 +156,8 @@ main(gint argc, gchar **argv)
}
}
+ gtk_init (&argc, &argv);
+
/* Grab the keys */
xvd_keys_init (Inst);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list