Linux Mint 20.1
AMD Ryzen 5 3600
Lazarus (2.0.6)
Grisbi (1.2.2)
Hello,
I want to be able to launch grisbi from a program that:
- asks for and verifies a password
- launches the execution of the grisbi program
To launch the execution of grisbi, I go through a TProcess.
The grisbi program launches well, but its menus are frozen, and it is impossible to close the application.
Running the task manager does not kill the process. Indeed, it too is completely frozen.
procedure TForm1.Btn_OKClick(Sender: TObject);
var
AProcess: TProcess;
begin
if (Edt_PassWord.Text = 'password')
then
begin
AProcess := TProcess.Create(nil);
AProcess.CommandLine := 'grisbi /mnt/sdb5/Oud/Places/Grisbi/mon_grisbi.gsb';
AProcess.Options := AProcess.Options + [poWaitOnExit]; // menus bloqués
AProcess.Execute;
AProcess.free;
//Application.Terminate;
end
else
begin
showmessage('Mot de passe invalide');
WCtr := WCtr + 1;
Edt_Password.Text := '';
Edt_Password.SetFocus;
end;
if (WCtr = 3) then Application.Terminate
else abort;
end;