summaryrefslogtreecommitdiff
path: root/mpris-service.c
diff options
context:
space:
mode:
authorMike Brady <mikebrady@eircom.net>2018-01-17 10:06:39 +0000
committerMike Brady <mikebrady@eircom.net>2018-01-17 10:06:39 +0000
commited38d00213a2166b59ed46ca3cbcb0fd8bd5ec1a (patch)
treeef1841d8a799da732f4e7acb5f1df20914b89169 /mpris-service.c
parent4aaa8d19fe27b5de4fb4036a1ce61d2477e9913f (diff)
Add a little extra info to mpris d-bus bus acquisition.
Diffstat (limited to 'mpris-service.c')
-rw-r--r--mpris-service.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mpris-service.c b/mpris-service.c
index 7f47c95..218c2e3 100644
--- a/mpris-service.c
+++ b/mpris-service.c
@@ -202,7 +202,10 @@ static void on_mpris_name_lost(GDBusConnection *connection, const gchar *name, g
GBusType mpris_bus_type = G_BUS_TYPE_SYSTEM;
if (config.mpris_service_bus_type == DBT_session)
mpris_bus_type = G_BUS_TYPE_SESSION;
- debug(1, "Looking for well-known interface name \"%s\".", interface_name);
+ if (mpris_bus_type == G_BUS_TYPE_SYSTEM)
+ debug(1, "Looking for well-known interface name \"%s\" on the system bus.", interface_name);
+ else
+ debug(1, "Looking for well-known interface name \"%s\" on the session bus.", interface_name);
g_bus_own_name(mpris_bus_type, interface_name, G_BUS_NAME_OWNER_FLAGS_NONE, NULL,
on_mpris_name_acquired, on_mpris_name_lost_again, NULL, NULL);
}