VLC invades lot of file associations

after I install vlc, many types of files like .desktop, .sh, .bashrc, .zip all have a association of vlc, which is “open with vlc”

what is the problem?

VLC: 3.0.17.4-6
KDE Plasma: 5.24.6

That’s not normal. My first impression is that somehow the file association was changed, outside of VLC. Also I’m not sure why you “installed” VLC because it comes with Manjaro KDE by default. You can change the file associations as they occur. Or try uninstalling VLC, reboot (to clear any settings) and then reinstall VLC.

I use the minimum ISO and it has no video player by default

@fbt89 recommendation is to my point of view the good way to fix your issue.

  1. Uninstall VLC

  2. Clear the config folders (~.cache/vlc, ~.config/vlc, ~.local/share/vlc)

  3. Reboot

  4. Check that the “Open with VLC” option disappeared

  5. Re-install VLC

1 Like

Post content of ~/.config/mimeapps.list

3 Likes

many of them have been changed manually by me.

but also many files are still opened by VLC

~/.config/mimeapps.list

[Added Associations]
application/json=visual-studio-code.desktop;firefox.desktop;vlc.desktop;org.kde.kate.desktop;okularApplication_txt.desktop;vim.desktop;gvim.desktop;
application/octet-stream=vlc.desktop;
application/x-cd-image=org.kde.ark.desktop;
application/x-desktop=org.kde.kate.desktop;
application/x-zerosize=org.kde.kate.desktop;
application/xml=visual-studio-code.desktop;
inode/directory=org.kde.dolphin.desktop;
text/markdown=visual-studio-code.desktop;
text/x-c++src=visual-studio-code.desktop;
text/x-chdr=visual-studio-code.desktop;
text/x-python=visual-studio-code.desktop;
text/x-tex=visual-studio-code.desktop;
video/mp4=io.github.celluloid_player.Celluloid.desktop;
x-scheme-handler/geo=qwant-maps-geo-handler.desktop;
x-scheme-handler/http=microsoft-edge.desktop;
x-scheme-handler/https=microsoft-edge.desktop;
x-scheme-handler/tel=org.kde.kdeconnect.handler.desktop;

[Default Applications]
application/json=visual-studio-code.desktop;
application/octet-stream=vlc.desktop;
application/x-cd-image=org.kde.ark.desktop;
application/x-desktop=org.kde.kate.desktop;
application/x-zerosize=org.kde.kate.desktop;
application/xml=visual-studio-code.desktop;
inode/directory=org.kde.dolphin.desktop;
text/markdown=visual-studio-code.desktop;
text/x-c++src=visual-studio-code.desktop;
text/x-chdr=visual-studio-code.desktop;
text/x-python=visual-studio-code.desktop;
text/x-tex=visual-studio-code.desktop;
video/mp4=io.github.celluloid_player.Celluloid.desktop;
x-scheme-handler/geo=qwant-maps-geo-handler.desktop;
x-scheme-handler/http=microsoft-edge.desktop;
x-scheme-handler/https=microsoft-edge.desktop;
x-scheme-handler/tel=org.kde.kdeconnect.handler.desktop;
x-scheme-handler/x-github-client=github-desktop.desktop
x-scheme-handler/x-github-desktop-auth=github-desktop.desktop
x-scheme-handler/baiduyunguanjia=baidunetdisk.desktop

Remove that.

Sorry but it does not work although it seems very possible. I removed that and rebooted.

I have no /etc/xdg/mimeapps.list or /usr/share/applications/mimeapps.list

Post the content again.

In /usr/share/applications you should find 'mimeinfo.cache… but the main culprit should be the list in .config

My first idea would be to move that mimiapps.list to mimiapps.list.BAK and then maybe try rebooting to see what changes.

Generally I find it simpler to correct issues at the point of opening files…
Two stages, open it with the app you chose and tell it to remember, which makes it default (not just remember…) then re-enter the list and move your primary choice back to the top of the list.

Your ~/.config/mimeapps.list has vlc.desktop listed after firefox for .json files

application/json=visual-studio-code.desktop;firefox.desktop;vlc.desktop;org.kde.kate.desktop;okularApplication_txt.desktop;vim.desktop;gvim.desktop;`

VLC on Linux does not have any settings to manage mimetypes similar to managing file associations on the other OS

The expected mimetypes are listed on VLC github page
vlc/vlc.desktop.mimetypes at master · videolan/vlc · GitHub
They should be the only mimetypes in /usr/share/applications/vlc.desktop