DEPNotify-Starter
DEPNotify-Starter copied to clipboard
Python is used in script
Describe the bug The script generated by Set-Up Helper uses python to set the CURRENT_USER variable
To Reproduce Steps to reproduce the behavior:
- Open DEPNotify Set-Up Helper
- Generate script
- Open script and search for 'python'
- See error: /usr/bin/python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");'
Software Versions (please complete the following information): Python is deprecated in macOS >12.3
Hey @sjurlohne,
The latest script release on this repo has removed the python dependency. https://github.com/jamf/DEPNotify-Starter/releases/tag/v2.0.7
Note that the changes to the logic are at both the CURRENT_USER section and the open DEP Notify section.
Hope this helps :)