DBusConnection: 'Exist()' and 'Start()' methods now use the '/org/freedesktop/DBus' object path, because DBus on Fedora does not use the '/' object path.

[GB.DBUS]
* BUG: DBusConnection: 'Exist()' and 'Start()' methods now use the '/org/freedesktop/DBus' object path, because DBus on Fedora does not use the '/' object path.
This commit is contained in:
Benoît Minisini 2023-07-02 23:58:21 +02:00
parent 05139e9bc9
commit 2965dc0886

View file

@ -62,7 +62,7 @@ End
Public Sub Exist((Application) As String) As Boolean
Try Return Me["org.freedesktop.DBus"]["/", "org.freedesktop.DBus"].NameHasOwner(Application)
Try Return Me["org.freedesktop.DBus"]["/org/freedesktop/DBus", "org.freedesktop.DBus"].NameHasOwner(Application)
End
@ -70,7 +70,7 @@ Public Sub Start((Application) As String)
Dim fTime As Float
Me["org.freedesktop.DBus"]["/", "org.freedesktop.DBus"].StartServiceByName(Application, 0)
Me["org.freedesktop.DBus"]["/org/freedesktop/DBus", "org.freedesktop.DBus"].StartServiceByName(Application, 0)
fTime = Timer
While Not {Exist}(Application)
Sleep 0.05