This could be a relatively silly question, but I'm trying to run the following command to turn off Slack's auto update feature:
defaults write /Users/$USER/Library/Preferences/com.tinyspeck.slackmacgap SlackNoAutoUpdates -bool YES
I'm planning on running the command via the Files and Processes > Execute Command section of a policy. I know with scripts $3 typically defaults to username, but does this also translate over to commands setup this way? Essentially I'm trying to figure out the best way to set the path to to the currently logged in user.
Thanks!