Yeah, under plasma 6 it works fine, its under bspwm that I have the issue.
The mimeapps list exists, and works fine when opening files from my browser, when using xdg-open, or when using other file managers (Thunar, for example).
Btw, I just realized that If I try to open an URL of a PDF in Okular, it shows the same dialog. It doesn’t know what to open the URL with. I guess the problem is present in all KDE applications. I don’t know wether to assign the “kde” tag to this.
I have very little - if any - experience with bspwm - I think I played with once - but the mimetypes are supplied globally by the system - I cannot really see why bspwm would not know.
I am fairly certain though it is not a plasma issue - as such - more a configuration which has gone lost - again - I cannot figure out why.
I finally came up with the solution, the problem is that it can’t find the applications.menu file. I have multiple .menu files in /etc/xdg/menus, but not one for bspwm.
$ ls /etc/xdg/menus
gnome-applications.menu plasma-applications.menu xfce-settings-manager.menu
kinfocenter.menu xfce-applications.menu
I had to choose one of those menu files (for example, the xfce one, as I will uninstall plasma after this test) and, either:
1. Set the XDG_MENU_PREFIX environment variable.
Set it to XDG_MENU_PREFIX=xfce- and restart the DE