mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Enable elevation under macOS (experimental)
This commit is contained in:
parent
1b39c9b210
commit
45f7a74bd5
1 changed files with 3 additions and 1 deletions
|
|
@ -317,8 +317,10 @@ end;
|
|||
{$ENDIF}
|
||||
|
||||
initialization
|
||||
{$IF DEFINED(DARWIN) OR DEFINED(HAIKU)}
|
||||
{$IF DEFINED(HAIKU)}
|
||||
FAdministratorPrivileges:= True;
|
||||
{$ELSEIF DEFINED(DARWIN)}
|
||||
FAdministratorPrivileges:= (fpGetUID = 0);
|
||||
{$ELSEIF DEFINED(UNIX)}
|
||||
{$IFDEF LINUX}
|
||||
if FindExecutable('pkexec', SuperExe) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue