[Gambas-user] Saving settings on system shutdown

jose.rodriguez at cenpalab.cu jose.rodriguez at cenpalab.cu
Mon Oct 4 00:26:08 CEST 2021


October 3, 2021 6:59 AM, "Bruce Steers" <bsteers4 at gmail.com> wrote:

> I have a program that starts with my system and runs in the background.
> 
> It has icons i can move and on exit it saves the positions.
> 
> I have noticed if i do not exit the program but shutdown the computer the settings do not save.
> 
> Of course i could just save the settings on moving icons but i wondered if there is a recommended
> method to catch an application exit due to a shutdown?
> Does the system just kill the program?
> 
> I guessed DBus would probably be the best alternative way but wouldn't hurt to ask the experts if
> there is already an easier way.
> 
> Thanks for any advice :)
> 
> BruceS

Can't find much info on the gb.signal component and I don't have the time to test it right now, but maybe this
is what you need?:

http://gambaswiki.org/wiki/comp/gb.signal

Regards,
Joe1962



More information about the User mailing list