I’m utilizing Jorrick’s MacOS notifications generator to make customized popup notifications. At any time when one seems, it makes use of the Python Launcher rocketship icon, like this:
I wish to substitute the rocketship picture with the System Settings gear icon. So, I adopted Apple Insider’s tutorial on how to take action, and succeeded. This methodology solely works with photographs, not .icns recordsdata – possibly there is a lead there.
I additionally deleted PythonLauncher.icns, the image of the rocketship, made a .icns of the gear, and put it in the identical listing with the identical title, so hopefully this system would use that because the icon.
Now, PythonLauncher.app makes use of the gear icon in a number of locations, however annoyingly, nonetheless not the notification icon!
- The Python I am executing to make the notification. I run it with
python3 notifgen.py
from Terminal. - The gear.png icon is used within the Get Information window
- The gear.png icon is utilized in Finder
- The gear.png icon is used within the Dock
- The .icns file I made to interchange the rocketship. Altering this file doesn’t change the earlier three icons.
- The notification, nonetheless utilizing the rocketship icon, although that icon doesn’t exist wherever on my system. I deleted all traces of it.
To make sure I deleted all copies of the outdated rocketship icon, I ran sudo discover / -iname '*PythonLauncher*' 2>/dev/null | tee ~/Paperwork/python/pythonlaunchersearch.txt
. The ouput of that command is beneath – I added newlines and explanatory feedback, and opened every file in Finder to test what it was.
#a listing which comprises one listing, which is empty
/System/Volumes/Information/non-public/var/folders/68/kk888d5s1g99nsjkfvml43rm0000gp/C/org.python.PythonLauncher
#a textual content file
/System/Volumes/Information/Customers/cn13431/Library/Software Assist/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.python.pythonlauncher.sfl3
#the outcomes of my discover command, tee'd right into a file
/System/Volumes/Information/Customers/cn13431/Library/CloudStorage/OneDrive-[company name redacted]/Paperwork/python/pythonlaunchersearch.txt
#OneDrive junk
/System/Volumes/Information/Customers/cn13431/Library/Group Containers/UBF8T346G9.OneDriveStandaloneSuite/OneDrive - [company name redacted].noindex/OneDrive - [company name redacted]/Paperwork/python/pythonlaunchersearch.txt
#an image of the system settings gear icon that I renamed to PythonLauncher.icns to match the outdated picture (the rocket)
/System/Volumes/Information/Functions/Python 3.13/Python Launcher.app/Contents/Assets/PythonLauncher.icns
#a listing which comprises one listing, which is empty
/non-public/var/folders/68/kk888d5s1g99nsjkfvml43rm0000gp/C/org.python.PythonLauncher
#a textual content doc
/Customers/cn13431/Library/Software Assist/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.python.pythonlauncher.sfl3
#OneDrive junk
/Customers/cn13431/Library/CloudStorage/OneDrive-[company name redacted]/Paperwork/python/pythonlaunchersearch.txt
#OneDrive junk
/Customers/cn13431/Library/Group Containers/UBF8T346G9.OneDriveStandaloneSuite/OneDrive - [company name redacted].noindex/OneDrive - [company name redacted], Inc/Paperwork/python/pythonlaunchersearch.txt
#the identical system settings gear picture as earlier than - it exhibits up twice in search outcomes.
/Functions/Python 3.13/Python Launcher.app/Contents/Assets/PythonLauncher.icns
I may by no means be a detective, as a result of I can not discover the place this rocketship icon is hiding. How is Python nonetheless accessing the rocketship icon, even when it not exists? And the way can I modify the icon to be the System Settings gear as a substitute?
Postnote: The commented icon
variable within the python program is not useful – that places a small icon within the backside proper, like this: