Hello everyone,
I copied a function for restarting my application in the linux mint from this forum.
In the windows it is working but in linux mint not working.
Is there any idea?
procedure TfrmMain.RestartApp;
VAR aProcess : TProcess;
begin
aProcess := TProcess.Create(nil);
aProcess.CommandLine := Application.ExeName;
aProcess.Execute;
aProcess.Free;
Application.Terminate;
end;
Thanks a lot