How to fix file associations for KDE apps in Hyprland
Recently, I’ve ran into an issue where file associations are broken in KDE applications when running them inside Hyprland, but not when they are running inside KDE.
KDE apps, when running outside of KDE Plasma, look at /etc/xdg/menus/applications.menu to determine which applications can open a file type. and on my system this file did not exist. So to work around the issue, we can symlink the XDG application menu generated by KDE Plasma to /etc/xdg/menus/applications.menu.
1
sudo ln -s /etc/xdg/menus/plasma-applications.menu /etc/xdg/menus/applications.menu
This post is licensed under CC BY 4.0 by the author.