[MacPorts] #45396: shared-mime-info @1.3 update-mime-database output is not removed on deactivate
MacPorts
noreply at macports.org
Tue Sep 13 17:06:15 UTC 2022
#45396: shared-mime-info @1.3 update-mime-database output is not removed on
deactivate
-------------------------------+----------------------
Reporter: bgilbert | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: shared-mime-info |
-------------------------------+----------------------
Comment (by RJVB):
So... `pre-activate` is indeed not reliable for me, it seems need a
preceding install event. But post-deactivate does work every time.
That means there will need to be a launchd agent or daemon similar to what
KDE4 does with kbuildsycoca4, which watches $prefix/share/mime/packages .
Without that, activating a different version of shared-mime-database would
leave you without the cached info.
The question now is what has to be deleted. Obviously I cannot just remove
all of $prefix/share/mime, but is there anything other than
$prefix/share/mime/packages that needs to remain?
--
Ticket URL: <https://trac.macports.org/ticket/45396#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list