This repository provides a step-by-step guide to fix broken MIME file associations in Dolphin file manager under Hyprland and KDE 6 (Wayland).
β Tested on Manjaro/Arch Linux. May work with other KDE-Wayland setups.
Dolphin may not correctly open files in their associated applications when used under Hyprland + KDE6. This is due to missing or misconfigured components such as:
- Missing
applications.menu - Broken or user-defined MIME types (e.g.
text/plain) - Corrupt KDE service cache (
KSycoca) - Incorrect or outdated
.desktopassignments
This guide walks you through the steps to fix it.
- Operating System: Arch / Manjaro Linux
- Environment: Hyprland + KDE Frameworks 6
- File Manager: Dolphin
sudo update-mime-database /usr/share/mimerm ~/.cache/ksycoca6_*Then logout and log back in to your KDE/Wayland session.
Check if it exists:
ls /etc/xdg/menus/applications.menuIf itβs missing, create a symlink:
sudo ln -s /etc/xdg/menus/plasma-applications.menu /etc/xdg/menus/applications.menuThen regenerate cache:
rm ~/.cache/ksycoca6_*
kbuildsycoca6 --noincremental --track menu
xdg-mime default org.kde.kate.desktop text/plainRestart Dolphin:
killall dolphin
dolphin &xdg-mime query default text/plain
# Should return:
org.kde.kate.desktopcd ~/.config
nano mimeapps.listReplace invalid entries like:
text/plain=kate6;With correct ones:
text/plain=org.kde.kate.desktop;;
Open the following file types in Dolphin:
.txt,.jpg,.mp3,.mp4,.odt, etc.
They should now open in their default applications automatically.
- Run
kbuildsycoca6every time you change menu or.desktopfiles.
See full guide in Fixing_Dolphin_and_Hyprland.md.