[Gambas-user] DBus oddity with startup application.
Benoît Minisini
g4mba5 at gmail.com
Mon Aug 9 20:32:37 CEST 2021
Le 09/08/2021 à 20:24, Bruce Steers a écrit :
>
> I've fixed the problem with this in my FMain.class ...
>
> *Static Public Sub _init()
> *
> *If Not Exist("/tmp/dish_opened") Then
> Wait 2
> File.Save("/tmp/dish_opened", "true")
> Endif
>
> End*
> that gives a couple of seconds and then the
> org.freedesktop.login1.Manager.PowerOff() function works
> if app is closed and relaunched it finds the file in /tmp/ and does not
> wait and dbus is still okay.
>
>
> Seems any call to Dbus like DBus.System.Applications.Exist() in _init()
> initialises dbus too early, it finds the login1 DBus.System.Applications
> but the Interfaces do not work.
Then the problem is in the application that handles
'org.freedesktop.login1.Manager'.
--
Benoît Minisini
More information about the User
mailing list