Code: Select all
GlobalCEFApp.AddCustomCommandLine('--password-store=basic');
Code: Select all
./myapp --password-store=basic
Please help.

Code: Select all
GlobalCEFApp.AddCustomCommandLine('--password-store=basic');
Code: Select all
./myapp --password-store=basic
Code: Select all
GlobalCEFApp.AddCustomCommandLine('--password-store', 'basic');
Code: Select all
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}
cthreads,
{$ENDIF}
{$IFDEF HASAMIGA}
athreads,
{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, unit1, process
{ you can add units after this };
{$R *.res}
procedure RelaunchWithParam;
var
AProcess: TProcess;
begin
AProcess := TProcess.Create(nil);
try
AProcess.Executable := ParamStr(0); // Ruta del ejecutable
AProcess.Parameters.Add('--password-store=basic'); // Agregar parámetro
//AProcess.Options := [poWaitOnExit]; // No esperar a que termine
AProcess.Execute; // Ejecutar nueva instancia
finally
AProcess.Free;
end;
Halt; // Detener la instancia original
end;
begin
// Si no hay parámetros, relanzamos con "--password-store=basic"
if ParamCount = 0 then
RelaunchWithParam;
RequireDerivedFormResource:=True;
Application.Scaled:=True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
Code: Select all
[11721:11721:0319/155317.710266:VERBOSE1:key_storage_linux.cc(116)] Selected backend for OSCrypt: BASIC_TEXT
Code: Select all
[11528:11528:0319/155229.476760:VERBOSE1:key_storage_linux.cc(116)] Selected backend for OSCrypt: GNOME_LIBSECRET