Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
22 Commits
 
 
 
 

Repository files navigation

Platform WM Desktop

Fixing File Associations in Dolphin / Hyprland / KDE6 / Wayland

🛠️ About

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.


📋 Overview - A practical guide

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 .desktop assignments

This guide walks you through the steps to fix it.


✅ System Requirements

  • Operating System: Arch / Manjaro Linux
  • Environment: Hyprland + KDE Frameworks 6
  • File Manager: Dolphin

🔧 Quick Steps for minimal Archlinux & Hyprland 🔧

Open terminal and follow this steps

    sudo pacman -Sy archlinux-xdg-menu
    ls /etc/xdg/menus

output : arch-applications-menu

    sudo mv arch-applications-menu applications.menu
    kbuildsycoca6 --noincremental

** Check the file mimeapps.list according to step 5.**
DONE


🔧 Fix Steps

1. Update system MIME database

sudo update-mime-database /usr/share/mime

2. Clear KDE service cache (KSycoca)

rm ~/.cache/ksycoca6_*

Then logout and log back in to your KDE/Wayland session.


3. Fix missing applications.menu

Check if it exists:

ls /etc/xdg/menus/applications.menu

If it’s missing, create a symlink:

sudo ln -s /etc/xdg/menus/plasma-applications.menu /etc/xdg/menus/applications.menu

Then regenerate cache:

rm ~/.cache/ksycoca6_*
kbuildsycoca6 --noincremental --track menu
xdg-mime default org.kde.kate.desktop text/plain

Restart Dolphin:

killall dolphin
dolphin &

4. Verify file association

xdg-mime query default text/plain
# Should return:
org.kde.kate.desktop

5. Edit mimeapps.list manually

cd ~/.config
nano mimeapps.list

Replace invalid entries like:

text/plain=kate6;

With correct ones:

text/plain=org.kde.kate.desktop;

⚠️ Make sure each line ends with a ;


🧪 Test

Open the following file types in Dolphin:

  • .txt, .jpg, .mp3, .mp4, .odt, etc.

They should now open in their default applications automatically.


📝 Notes

  • Run kbuildsycoca6 every time you change menu or .desktop files.

🧩 Optional: Manually create .desktop or applications.menu

See full guide in Fixing_Dolphin_and_Hyprland.md.

About

Fix MIME file associations in Dolphin under Hyprland and KDE 6

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.