-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hi,
I tried to save plist file in global agent by changing userDomainMask -> localDomainMask
let library = try FileManager.default.url(for: .libraryDirectory, in: .localDomainMask, appropriateFor: nil, create: false)
then i got error in macOS Ventura 13.2.1
Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “com.test.plist” in the folder “LaunchAgents”." UserInfo={NSFilePath=/Library/LaunchAgents/com.test.plist, NSUnderlyingError=0x600000d4b870 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
***Note that my application built with sandbox is off.
Do you have any idea?
Thanks
Metadata
Metadata
Assignees
Labels
No labels