xdg-desktop-menu never removes entries from defaults.list
Submitted by Peter Åstrand
Assigned to Portland Bugs
Description
We are registering a mime type association when are are installing our application by these lines in the package postinstall script:
$ xdg-desktop-menu install /opt/thinlinc/lib/tlclient/thinlinc-client.desktop $ xdg-mime install /opt/thinlinc/lib/tlclient/thinlinc-client-mime.xml
Same thing but "uninstall" when the package is removed. Unfortunately, after removing the package, the type is still to be found:
$ xdg-mime query default application/vnd.cendio.thinlinc.clientconf thinlinc-client.desktop
This is because xdg-desktop-menu adds stuff to /usr/local/share/applications/defaults.list, but never removes anything.