Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handlr clears "Removed Associations" section of mimeapps.list #46

Open
nyanpasu64 opened this issue Jun 27, 2021 · 1 comment
Open

handlr clears "Removed Associations" section of mimeapps.list #46

nyanpasu64 opened this issue Jun 27, 2021 · 1 comment

Comments

@nyanpasu64
Copy link

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?

@chmln
Copy link
Owner

chmln commented Jul 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants