I’d like to change the preferred-application order for some mimetypes/file extensions, and trying to do that through the “File associations” tab of the System Settings Module. But the changes don’t stick.

A look at .xsession-errors shows that some files must be corrupted. For example I see (NB: this isn’t the mimetype I’m trying to change):

Mimetype Comment Dirty: old= "application/vnd.amazon.mobi8-ebook" m_comment= "Amazon KF8 ebook format"
Entry  "application/x-mobi8-ebook"  is dirty. Saving.

and similarly for several other obscure mime-types (e.g. “x-x509-ca-cert”).

I’ve tried a reset as described here, by renaming the ~/.local/share/mime directory, creating a new ~/.local/share/mime/packages/ one, and calling update-mime-database ~/.local/share/mime. But it doesn’t help. I manage to do and save one change in the File Associations settings, but after that, other changes won’t stick anymore.

Something seems corrupted upstream.

Any suggestions? Cheers!

  • Knusper@feddit.de
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    If you right-click on a file and select “File Properties”, then on the General-page, to the right of the “Open With”-row, there should be a “Change…”-button. Can you fix the mime-type association with that?

    I mean, chances are that it calls the same code as the System Settings Module, but maybe still worth trying…

    • stravanasu@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      It does seem to work, thank you very much! I’ve also been deleting some desktop files that were corrupted (although not used by any mime type), that may have also helped.