[vino/gnome-3-14] Avoid a critical EggSMClient warning on startup
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vino/gnome-3-14] Avoid a critical EggSMClient warning on startup
- Date: Tue, 24 Feb 2015 15:04:47 +0000 (UTC)
commit 194344c9a0d26c43196156fe92ee9b71ec58af25
Author: David King <amigadave amigadave com>
Date: Tue Feb 24 15:02:41 2015 +0000
Avoid a critical EggSMClient warning on startup
https://bugzilla.gnome.org/show_bug.cgi?id=662074
server/vino-main.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/server/vino-main.c b/server/vino-main.c
index 1f2b2b1..dd95de7 100644
--- a/server/vino-main.c
+++ b/server/vino-main.c
@@ -252,6 +252,11 @@ main (int argc, char **argv)
{ NULL }
};
+ /* Call this before parsing options, as that triggers creation of an SM
+ * client. Creating the client in a disabled state, and then switching to
+ * the real state later, avoids a critical warning on startup. */
+ egg_sm_client_set_mode (EGG_SM_CLIENT_MODE_DISABLED);
+
context = g_option_context_new (_("- VNC Server for GNOME"));
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_add_group (context, egg_sm_client_get_option_group ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]