Which config-file stores file associations in KDE/Plasma?

5,746

KDE stores its mimetype mappings in ~/.local/share/applications/mimeapps.list, so you might want to have a look at that file. Each line containe a mimetype followed by an = and the application to use, for example:

application/xml=kde4-kwrite.desktop

You can also change these associations with the kcmshell4 tool (see also):

kcmshell4 filetypes
Share:
5,746

Related videos on Youtube

burnpanck
Author by

burnpanck

Currently doing a PhD in Physics. I enjoy to (over-) engineer things: I like FPGAs and highly optimised low-level code. If possible, using as much meta-programming as possible, be it C++ template meta-programming or dynamic AST modification in python. Rather spend two days coding an elegant solution than to do copy-paste more than once.

Updated on September 18, 2022

Comments

  • burnpanck
    burnpanck almost 2 years

    With the 15.04 release of Kubuntu, I switched from Gnome (Ubuntu) to KDE/Plasma. I did a clean install, while keeping my home directory. Now, libreoffice (mostly Calc) seems to be associated with every unknown file-type. Instead of manually fixing the associations for every file I encounter, I'd rather understand what went wrong and fix it by looking at the corresponding config file that KDE/Plasma uses. Which config-file is it?

  • burnpanck
    burnpanck almost 9 years
    This file seems to only list changes I manually did from within Dolphin, particularly it has a section [Removed Associatsion], listing libreoffice several times. What from do I remove libreoffice? Why do I have to remove libreoffice from e.g. say text/x-bibtex?
  • Sparr
    Sparr over 5 years
    This answer doesn't seem complete. This file does not represent all of the associations configured for me.