Application.Restart=String[] ?
Posted
#1
(In Topic #498)
Guru

it's used in the gambas ide a bit
something like
Application.Restart=["gambas3", $sFilePath]
But there no documentation or calls i see to use the setting afterwards.
i assume it does a nice clean app restart?
Or I'm hoping so.
all the best
Bruce
Posted
Guru

I found this quote
..desktop sessions are now supported, the Application.Restart property allows to define the command executed by the session manager to put the application back on the desktop when starting the desktop.
I know you will have seen this from Benoît but I add it for other readers.
No, Application.Restart is telling the X11 session manager which command-line must be used for restarting the program at login.
I found this Application.Restart = ["gambas3", Project.Dir] in some gambas code here
I also got this 'Help' while testing.
<IMG src="https://www.cogier.com/gambas/Application_Restart.png">
</IMG>I'm none the wiser
Posted
Guru

Did you see my post about how to get an app to choose gui system on startup?
[Gambas-user] Making an app gtk/qt switchable
And they said it couln't be done ….
I consider the way i'm relaunching the app there a bit dirty though.
Essentially launching the app twice till the latter quits. does not seem right.
There's Application.Daemon = True but that alters working dir.
My method is flawed i think in a few other aspects as well but for basic small apps works well.
Bruce
Posted
Guru

1 guest and 0 members have just viewed this.



