[Gambas-user] DBus oddity with startup application.
Bruce Steers
bsteers4 at gmail.com
Mon Aug 9 22:27:31 CEST 2021
On Mon, 9 Aug 2021, 19:33 Benoît Minisini, <g4mba5 at gmail.com> wrote:
> 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'.
>
Seems quite odd that the login1 interface is not found but the login1
Application is unless I restart the program.
Like gb.dbus DBus.class sets something up as the component loads that does
not ever get refreshed?
Thanks Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210809/11f554e8/attachment.htm>
More information about the User
mailing list