Post

Replies

Boosts

Views

Activity

Unable to create or delete print queue via lpadmin in Sandbox environment
Hi, I am creating a macOS application which supports 10.12 OS & above wherein we provide an option to user to create or delete print queue based on the inputs. And we are using following commands to provide this functionality Add Print Queue lpadmin -p printerID -D queueName -E -v deviceURI -P PPDFilePath -o printer-is-shared=false Delete Queue lpadmin -x QueueName Below mentioned Entitlements are added in the application App Sandbox com.apple.security.network.client com.apple.security.network.server com.apple.security.print Observations: It works well on all supported OS (10.12 - 10.15) in non Sandbox environment It fails to work only on 10.12 & 10.13 OS on enabling Sandbox and we get error in console as "Sandbox denied authorizing right 'system.print.admin' by client '/usr/sbin/lpadmin' " So let me know if any additional entitlements are to be included to support this functionality. Thanks, Ranjith Kumar G
1
0
299
Jul ’20