by jeroenhd · 3mo ago · 0 comments
That removes most of the program files, but there is no chance for the program to run any cleanup process in the mean time. Library Support, .cache, and all other kinds of remnants remain and have no way of getting cleaned up without manual user intervention. It's like hunting down broken uninstaller files in Windows 98 all over again.
The places that need cleaning up after uninstalling a program:
~/Library/Application Support/
~/Library/Preferences/
~/Library/Caches/
~/Library/LaunchAgents/
Or possibly: /Library/Application Support/
/Library/LaunchDaemons/
/Library/LaunchAgents/
And possibly others that use UNIX-style .config/.cache rather than the macOS defaults.I do like the "folder as an executable" approach macOS has, but the way the ecosystem goes about program management isn't great. Storing caches and data inside of the app directory for applications installed to a user folder (not the global Applications folder, which would require administrative permissions) would go a long way. Entries in all the other folders could just be symlinks that don't take up any space after you trash a program.
As for installers, macOS comes with its own native install wizard format, akin to Windows' MSI installers. This seems to be the default way of installing programs that need things like drivers to function correctly.
On the other hand, I never had disk issues because of randon files inside the user directory, nor do I install/uninstall programs that often. And this I would venture to say is the same for most of computer users: Office, IDE(s), a browser or two and some utilities.
I have for example Goland, Postman, Chrome, Firefox and Wireshark. And some homebrew stuff like ngrok & friends. I spend most of the time in Chrome doing emails and using Confluence/Jira, Google Meet.
But Sequoia and up have strict management of background agents in "Settings / Login Items".
It fills up with so many broken references, duplicate entries, etc... I have no idea how a normal user is supposed to remove trash from that list. I pointed an agent at it, asking it to remove any broken references.
On macOS that mechanism is simply impossible if you install the app using the drag&drop method.
Sometimes. Many apps do clean up after themselves.