handlr icon indicating copy to clipboard operation
handlr copied to clipboard

handlr clears "Removed Associations" section of mimeapps.list

Open nyanpasu64 opened this issue 4 years ago • 1 comments

mimeapps.list has a [Removed Associations] section for apps which are removed from the selection order. For example, you can use it to prevent Wine Internet Explorer from trying to handle PDF files (though you're probably better off removing ~/.local/share/applications/wine-extension-*.desktop by hand). This section of the file can be added using GNOME's "Applications" settings page, and opting apps out of specific file extensions.

Unfortunately handlr clears this section when editing mimeapps.list, since it doesn't read it when loading the file, and rewrites the entire mimeapps.list instead of updating the old contents in-place.

Is it possible to preserve the "Removed Associations" section of the file?

nyanpasu64 avatar Jun 27 '21 01:06 nyanpasu64

Hey @nyanpasu64 we can definitely parse and keep that section of the file. I wasn't aware such a section even exists, thanks for bringing this to attention

chmln avatar Jul 05 '21 04:07 chmln