[at-spi2-core] at-spi-bus-launcher: session management fixes
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] at-spi-bus-launcher: session management fixes
- Date: Wed, 28 Dec 2016 18:16:16 +0000 (UTC)
commit 685ad09cf927b0f48727839c13a01478154ca863
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Dec 4 15:42:01 2016 +0200
at-spi-bus-launcher: session management fixes
bus/at-spi-bus-launcher.c | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index 54aa07f..93d8fad 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -205,6 +205,17 @@ register_client (A11yBusLauncher *app)
}
static void
+name_appeared_handler (GDBusConnection *connection,
+ const gchar *name,
+ const gchar *name_owner,
+ gpointer user_data)
+{
+ A11yBusLauncher *app = user_data;
+
+ register_client (app);
+}
+
+static void
setup_bus_child (gpointer data)
{
A11yBusLauncher *app = data;
@@ -588,9 +599,11 @@ on_name_acquired (GDBusConnection *connection,
const gchar *name,
gpointer user_data)
{
- A11yBusLauncher *app = user_data;
-
- register_client (app);
+ g_bus_watch_name (G_BUS_TYPE_SESSION,
+ "org.gnome.SessionManager",
+ G_BUS_NAME_WATCHER_FLAGS_NONE,
+ name_appeared_handler, NULL,
+ user_data, NULL);
}
static int sigterm_pipefd[2];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]