summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2012-07-12 11:11:23 -0400
committerPeng Huang <shawn.p.huang@gmail.com>2012-07-12 11:11:23 -0400
commit636dda476734869c0e1fbf4d0464779a4c6fe667 (patch)
treecca36c0fee02f4f0943a7bf92fb4e0dc86bdda60 /bus
parent22ebca106794af153c01eae7e0175eb9f1a27648 (diff)
bus: Own a name on the DBus session bus
This makes it easier for third parties to track the ibus-daemon life cycle. BUG=http://code.google.com/p/ibus/issues/detail?id=1476 TEST= Review URL: https://codereview.appspot.com/6374058 Patch from Rui Matos <tiagomatos@gmail.com>.
Diffstat (limited to 'bus')
-rw-r--r--bus/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bus/server.c b/bus/server.c
index ed384602..253b6c3e 100644
--- a/bus/server.c
+++ b/bus/server.c
@@ -122,6 +122,10 @@ bus_server_init (void)
/* write address to file */
ibus_write_address (address);
+
+ /* own a session bus name so that third parties can easily track our life-cycle */
+ g_bus_own_name (G_BUS_TYPE_SESSION, IBUS_SERVICE_IBUS, G_BUS_NAME_OWNER_FLAGS_NONE,
+ NULL, NULL, NULL, NULL, NULL);
}
const gchar *