From 186115a70a36e3d615c2b0997c10eabf41485fe8 Mon Sep 17 00:00:00 2001 From: Nicholas Little Date: Thu, 7 Aug 2014 03:50:21 +0100 Subject: [PATCH] bus: Name exists if present or activatable --- src/Bus.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bus.cs b/src/Bus.cs index 530267f..dd0d5de 100644 --- a/src/Bus.cs +++ b/src/Bus.cs @@ -3,6 +3,7 @@ // See COPYING for details using System; +using System.Linq; using System.Collections.Generic; using org.freedesktop.DBus; @@ -98,7 +99,7 @@ protected override bool CheckBusNameExists (string busName) { if (busName == DBusName) return true; - return NameHasOwner (busName); + return NameHasOwner (busName) || bus.ListActivatableNames ().Contains (busName); } public ulong GetUnixUser (string name)