Hi,

if your app needs full disk access an macOS 10.14.x Mojave and newer, then
the users have to grant the access for your 4D application.


I use this to check the access privileges:

C_TEXT($in;$out;$err;$path)
If ((<>SystemVersion="Mac 10.14") | (<>SystemVersion="Mac 10.15") |
(<>SystemVersion="Mac 10.16"))
        ARRAY TEXT($art_Text;0)
        $path:=Replace string(System folder(Documents
folder);"Documents";"Library")+"Safari:"
        FOLDER LIST($path;$art_Text)
        If (Size of array($art_Text)=0)
ALERT("Bla Bla Bla need full disk access bla bla!")
                $in:=""
                $out:=""
                $err:=""
                SET ENVIRONMENT 
VARIABLE("_4D_OPTION_BLOCKING_EXTERNAL_PROCESS";"false")
                LAUNCH EXTERNAL PROCESS("open
x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles";$in;$out;$err)
        End if 
End if 

The second LEP call opens system preferences with the needed pane

Armin



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to