296 points · by alin23 · 3y ago · 197 comments
The UX from early MacOS days is you can drag/drop the App to the Trash Can to uninstall it.
Does MacOS actually clean up the misc. files applications leave at some point?
I’ve been using AppCleaner (https://freemacsoft.net/appcleaner/) for years now and it’s a real neat (and free) app that’ll do a pretty decent job of cleaning up crud.
I wonder how many users that have uninstalled VMware still have 30 gigs of unused VMs lying around on their disk.
It would be "unbelievable" if a multibillion company decided to be helpful and erase your data just because you deleted the binary that created them (actually, it wouldn't, but let's not digress into how those companies are stripping away our agency by mobile-ossifying everything).
The whole Mac idea was that there's no "uninstall process" with opaque windoze registries etc; what the Finder shows you is simple enough for an average user to understand. Like dragging an "Application" or a CD-ROM into the Trash to get rid of it. Of course they ruined all that with ~/Library/{Preferences,Application Whatever,Kitchen Sink}/.
Turns out your UNIX with a human face ate its children afterall. With relish.
Also, "uninstallable" means "cannot be installed"
For example on Windows if you grab a zip for an app and just put it in Program Files (or anywhere), run it then delete it there is nothing Windows does to clean up the files in AppData or entries in the registry.
Same on Linux if you grab a tar.gz, extract it to /opt and use it then delete it. All the data in ~/.config etc remains.
If the app developer providers an uninstaller it may clean up such data but that isn’t an OS feature.
There are many macOS apps that come with a pkg installer and uninstaller that cleans up in much the same way as an installer on Windows.
A little tip: if you use homebrew on macos you can use brew to force uninstall any application along with the zap argument and it will clean up most things. The app doesn’t have to have been installed via homebrew for this to work.
So if you wanted to remove Obsidian that you had manually installed using the dmg you could do `brew remove --cask --force --zap obsidian` and it will remove the Obsidian .app, plist, cache files in Application Support, etc.
You can also check the brew formula file which is just plain text to see exactly what it will remove during a zap which is quite handy.
The OS doesn’t know what files that app created, thus can’t clean them up.
The only sane way to use desktop OS that I've found is to reinstall everything every 6-12 months and having some backup procedures to speed up configuration process.
https://apps.tempel.org/FindAnyFile/
I used it recently get rid of a bunch of Wacom garbage that was littered throughout my system and causing the mac to crash.
When you search there is a + next to save in finder, click that, have name and matcha, + another option, choose other and scroll down to System Files, then set to are included.
I guess they’re just expected to be left behind in case you change your mind and want to reinstall the app later. That way you’ll still continue where you left with the same settings.
They’re inert files and very small usually, comparative to our current SSD offerings.
And if apps are well behaved, only writing tiny config files in ~/Library/Preferences/ and the like, it’s not really a problem. The amount of space taken up in that situation was tiny even when OS X 10.0 was brand new and 10GB was a common HDD size.
On the other hand if the app pulls an Adobe and leaves tons of relatively heavy crap strewn about, yeah it should probably come with an uninstaller.
Google is guilty of this sort of things as well. Well, it was anyway at some point. I somehow managed to get rid of everything, including their updater that re-installs itself regardless of what you do to remove it.
I wish we had more control over sandboxes so we could put some software in solitary confinement with no possibility to write anything anywhere without asking.
The new notifications when some software installs a background service is a step in the right direction.
Apparently they do this so they can control when it's updated, without having to go through any OS controls.
Needless to say, when people "delete" it they often are just deleting a stub rather than the actual multi-GB file set. :(
Because it only happens when you use the specific "x" button in Launchpad
A UX for a more civilized age…
215781406 0x00020200=[removed] /Users/alin/Library/Application Support/Lunar
215781409 0x00010200=[removed] /Users/alin/Library/Preferences/fyi.lunar.Lunar.plistFor ~/Library your application may often put its preferences in ~/Library/Preferences/ and partly in ~/Library/Application\ Support/. That's entirely normal and expected. But, no, for /Library that's absolutely not common. Very few applications run as an actual "installer" and even fewer of those request admin privileges. But it is annoying those few times some software actually does it. At the least you can always tidy it up yourself on the command line.
So macOS is as shitty as Windows in terms of app install?
Anyway, accepted wisdom now is that applications should only run containerized, which would make uninstall as simple as deleting the container.
The stuff in ~/Library is caches + preferences + any other data. Deleting an app on macOS, even back in the day, did not delete the preferences.
The problems with Windows is that you needed an installer in the first place, and then an uninstaller, and then you couldn’t move an application to a different location. On a Mac, you can still just drag the application to the /Applications folder, or somewhere else, and then delete it later. The user data remains.
Though, it depends on the software of course. I’ve seen some bad-faith macOS installs that easily compete with bad-faith Windows installs.
https://apps.tempel.org/FindAnyFile/
I used it recently get rid of a bunch of Wacom garbage that was littered throughout my system and causing the mac to crash.
By now the filesystem permissions hierarchy really should be extended into Group → User → App.
You can see the half-baked workarounds many operating systems use like controlling access to entire folders like Documents, Downloads, Photos etc.
Why not just make it fine-grained and let us permit and deny apps' access to individual files, and see which app created which file?
Yes, but the downside is that you're now relying on an unstable interface (as I understand it, this behaviour is not documented as a contract anywhere). Apple would be free to break you at any time.
(Technically, ‘unlockable’, ‘uninstallable’ etc. don’t exemplify pure structural ambiguities because the ‘un’ prefix is used in two different senses, but the two meanings do have different structures.)
That would work reliably for me, even for installs not actually managed by Homebrew.
Such a system could also potentially be enforced. Is it a symlink? If "yes" allow the write to ~/Library or wherever else. If not, deny it.
Genuine question: is there some reason not to do this?
There’s also the matter of permissions, some apps may be installed by the admin, but the app might not run with admin permissions for some users.
> Why are an applications files physically moved elsewhere in the first place?
It’s possible there’s misunderstanding in what we both consider application files. Anything that exists in the AppName.app bundle never gets modified, deleted or moved. And it’s not possible to create any new file in that bundle, not even symlinks, without invalidating the signature.
An attempt at an open source AppCleaner, I worked on a script, called zap (https://github.com/idianal/zap), that aims to replicate much of the same functionality (without a GUI). The benefit for users is they can see exactly what it is doing on their computer.
Here I outline the limitations: https://idian.io/posts/2022/writing-an-app-uninstaller-for-m....
I was tricked into selecting to install it one time installing anaconda/spyder. I’ve since removed all of that including anaconda and followed the now scrubbed uninstall instructions on their (defunct kite’s) website.
However a .kite folder keeps showing up in my ~/
I’ve deleted tons of times and searched thru /library and ~/library
I resorted to locking .kite hoping that if some hidden process were using it it won’t have write access anymore. But admittedly I have no idea what’s creating this dir and the reason for it or if I defeated it by locking that .kite folder down.
Thx
It's the second time I read about Lunar, and my curiosity led me to their impressive monitor database: https://db.lunar.fyi/
Weird, so did I! Why!?
After reading it again, there are still an ambiguity though: impossible to install, or that you can uninstall?
"Hello billion dollar company, I would like a way to install and uninstall my software in your operating system."
"No."
"Wh.... huh? Please?"
"Pay us money and go through our app store."
"Um....why? No? Please? Can't you just let me make software and give it to users, without going through you?"
"No."
"Why not?"
"We don't like it when you do that."
"So?"
"So you only get to do what we say, how we say."
"Why?"
"It makes us happy."
"And what about the users' happiness?"
*laughs in dollar bills*I can’t think of a use case where one installs apps and runs them from websites but wants to uninstall them from the modern equivalent of At Ease.
Apple’s choices may not be what everyone wants, but they’re not without upsides for those that do.
What kind of "upside" for Lunar users are you alluding to?
challenging opinions and "randomly" putting things in quotes to make them appear "fabricated" are not how you win people to your side, or even trigger them to pause and think for a moment. this is how you encourage others to develop a strong aversion to anyone talking like you or anyone having the opinion you have.
with the most positive and pure tone possible: be constructive or be quiet; you're severely hurting your own cause.
Oh that's right, we can't control that, just have to pay the tax.
1. Drag into Applications, try to open it, get warning.
2. Open System Preferences > Security & Privacy > General, click on lock, enter admin password, allow the app to be opened.
So it's not as easy as it used to be.
If either of those aren't satisfying, you can always drop the check entirely which I can't personally recommend.
Isn't that what the article shows how to do?