Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

bus: Name exists if present or activatable #40

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Bus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// See COPYING for details

using System;
using System.Linq;
using System.Collections.Generic;
using org.freedesktop.DBus;

Expand Down Expand Up @@ -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)
Expand Down