root3nl / SupportApp

The Support App is developed by Root3, specialized in managing Apple devices. Root3 offers consultancy and support for organizations to get the most out of their Apple devices and is based in The Netherlands (Halfweg).
https://www.root3.nl
MIT License
585 stars 60 forks source link

Allow defaults write in PrivilegedScript #172

Open phillscholl opened 3 months ago

phillscholl commented 3 months ago

Now with the Support 2.6 App which is currently in BETA status and the built-in support for executing scripts with elevated privileges, would it be nice to have the ability to use the defaults write function in theses privileges scripts.

jordywitteman commented 3 months ago

@phillscholl could you perhaps provide more details? For security reasons it is an intended change to only allow scripts and no longer allow individual commands in the configuration profile for keys like FirstRowLinkLeft. However, you can still include a line in the script like: defaults write /Library/Preferences/nl.root3.support.plist ExtensionLoadingA -bool true

Or do you mean something else?

phillscholl commented 3 months ago

let me explain it: with the ability to use defaults write, I could dynamically change the icon or text on "Second Row Right" which would make the support app more dynamic. Or at least give me the ability to use my own variables in scripts to set this.

wakco commented 3 weeks ago

You still can, so long as it's not configured by the MDM provided config profile. Aside from the Privileged Script settings everything can be scripted, so long as they are not defined in the MDM provided config profile. So as long as you define the "Second Row Right" button, without defining its icon, label, or hover-over label, those aspects of the button can still be changed.

phillscholl commented 3 weeks ago

Oh, that's right. I hadn't even thought about that. So this issue can be closed as it works as desired. Thank you very much.