DEPNotify-Starter icon indicating copy to clipboard operation
DEPNotify-Starter copied to clipboard

Python is used in script

Open sjurlohne opened this issue 2 years ago • 1 comments

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:

  1. Open DEPNotify Set-Up Helper
  2. Generate script
  3. Open script and search for 'python'
  4. 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

sjurlohne avatar May 19 '22 11:05 sjurlohne

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 :)

jorks avatar May 23 '22 01:05 jorks