Finder / Quicklook blocks eject of mounted disk images
This is. a bump of the unanswered post here: discussions.apple.com/thread/8175248
Bottom line: after using QuickLook to preview files on a mounted disk image (sparse bundle, in my case), you can't eject or unmount the image. The Finder reports it's "busy". I've pretty much narrowed the culprit down to QuickLook;
(1) Using "lsof" in the Terminal shows QuickLook has many open files on that virtual disk (even though the previews are long closed)
and
(2) using the ActivityMonitor and killing "QuickLookUIService" immediately allows me to eject the disk.
As mentioned in the previous posts, you can wait 1 min or 1 hour after using QuickLook - it doesn't matter - it won't free up the disk. You can however, force eject the disk, but that seems like a Bad Practice.
I guess Apple employees don't actually read these discussions, but if anyone is lurking, why is this still an issue?
MacBook Pro TouchBar and Touch ID, macOS High Sierra (10.13.3)