[i3] Issue with dolphin and file associations in i3

So, this fix/workaround has actually been around since April 26… And KDE will not fix it for us, it seems. It’s a new KDE6 structure/component issue.

One option — the ridiculous one — is to install plasma-workspace even if you have no intention of using plasma. → Not doing that.

So, the other option is to paste the applications.menu file in both the /etc/xdg/menus/ and /.config/menus/ directories.

Downloading the file from GitHub was the wrong move, however. The right way to do it is below:

  • Downgrade kservice5
  • Choose kservice5 5.115.0-1
  • Do not ignore the package when pacman asks. Choose “No” / n
  • After the downgrade, copy applications.menu from /etc/xdg/menus/ to /.config/menus/
  • Upgrade kservice5 to the current version kservice5 5.115.0-2
  • Finally, copy applications.menu from /.config/menus/ to /etc/xdg/menus/

After doing this, I can now associate files with any app from Dolphin as expected. No need for any environment variables, launch options, etc.

Bug Report here: https://gitlab.archlinux.org/archlinux/packaging/packages/kservice5/-/issues/1
And here: https://gitlab.archlinux.org/archlinux/packaging/packages/plasma-workspace/-/issues/3

EDIT: This affects Krusader too: LibreOffice, Krusader having trouble
So it’s safe to say that this issue is KDE-based.

1 Like