Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow defaults write in PrivilegedScript #172

Closed
phillscholl opened this issue May 30, 2024 · 4 comments
Closed

Allow defaults write in PrivilegedScript #172

phillscholl opened this issue May 30, 2024 · 4 comments
Labels
question Further information is requested

Comments

@phillscholl
Copy link

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
Copy link
Contributor

@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?

@jordywitteman jordywitteman added the question Further information is requested label May 31, 2024
@phillscholl
Copy link
Author

phillscholl commented Jun 3, 2024

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
Copy link

wakco commented Aug 20, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants