0

I'm using elementary OS 5.0 and custom file associations always worked perfectly, but a few days ago stopped working.

File extensions previously associated to Visual Studio Code (for instance .cs, .json, .js) are now associated to again. If I try to change them back to Visual Studio Code nothing is saved and the file association that was previously set up returns to .

I'm using the Italian locale.

0

Looks like a known bug and probably will be fixed soon

https://github.com/elementary/files/issues/836


This is the file you are looking for .config/mimeapps.list, there you can review or edit the file associations

Its structure is (I removed everything and only left Firefox settings):

[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/ftp=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;

[Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
  • Thanx. I wonder, anyway, why I had no problem till some days ago and I'm now having it... I also tried renaming .config/mimeapps.list to .config/mimeapps.list.old and the file was recreated, but the problem is still present: if I try to set custom associations from the gui, they are no longer saved. – FeliceMente Jan 2 at 22:31
  • I think is a known bug (and soon to be fixed) – Sebastian Jan 2 at 23:52

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.