You are not logged in.

#1 2023-04-03 09:52:50

Overbloom
Member
Registered: 2022-12-03
Posts: 4

I can't understand how mimeinfo.cache works

Hello everyone,

I'm struggling with the /usr/share/applications/mimeinfo.cache file. I'm using labwc and PCManFM, and every update VS Code replaces "inode/directory=" with itself, preventing opening folders with the "pcmanfm-qt.desktop". To be honest, Kitty is doing the same thing, yet it put itself in the following position, so this doesn't prevent me from using PCManFM.
I believe it's a noobie question, yet I'd like to ask for help.

Thank you for any help.

Last edited by Overbloom (2023-04-03 09:55:11)

Offline

#2 2023-04-03 10:47:06

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,096

Re: I can't understand how mimeinfo.cache works

Don't rely on  /usr/share/applications/mimeinfo.cache it is rewritten very often.

create a mimeapps.list file in ~/.config/mimeapps.list (per user) or /etc/xdg/mimeapps.list (systemwide) with your desired default applications, see https://wiki.archlinux.org/title/XDG_MI … eapps.list .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2023-04-03 17:35:05

Overbloom
Member
Registered: 2022-12-03
Posts: 4

Re: I can't understand how mimeinfo.cache works

This file "~/.config/mimeapps.list" already exists.
I added "inode/directory=pcmanfm-qt.desktop" to it.
Thank you!

Offline

#4 2023-12-08 00:31:55

BEEDELLROKEJULIANLOCKHART
Member
From: https://dub.sh/6uz3LQq
Registered: 2022-05-12
Posts: 18
Website

Re: I can't understand how mimeinfo.cache works

Lone_Wolf wrote:

Don't rely on  /usr/share/applications/mimeinfo.cache it is rewritten very often.

create a mimeapps.list file in ~/.config/mimeapps.list (per user) or /etc/xdg/mimeapps.list (systemwide) with your desired default applications, see https://wiki.archlinux.org/title/XDG_MI … eapps.list .

Any idea why this was necessary initially? Why does /usr/share/applications/mimeinfo.cache exist if it appears to be an unordered version of /etc/xdg/mimeapps.list? And much more so, why would it thus be used for MIME type affiliation?


When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

Offline

#5 2023-12-08 00:36:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,232

Re: I can't understand how mimeinfo.cache works

Because each application that supports a mimetype gets added there so you can have "Open with" integration and the like. Unless you made a preference clear via explicit configuration you need to have "some" place where that information is present so it can be used for that.

Offline

Board footer

Powered by FluxBB