No apps in "open with" dialog in Dolphin from outide of plasma

When I try to open a file from Dolphin, the following dialog appears, and there are no applications to choose from:

I’m using dolphin from bspwm (but the problem occurs also on xfce), I installed plasma and it works fine if I open Dolphin from plasma.

Nevertheless, it worked fine on bspwm before the plasma6 update.

So technically this has nothing to do with plasma?

I advise you to ensure that bspwm can locate the mimeapps.list file in your ~/.config folder.

Perhaps you accidently removed it as part of the plasma6 update?

On second thought the mime associations is usually provided by the system - and the local mimeapps.list only contains your preferences.

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.

If you check the mimetype - what is the reply ?

mimetype -M bla.pdf
mimetype bla.pdf

You can rebuild your mime database using

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

Mimetypes are fine, it works with other programs.

$ mimetype -M Documents/HORARIO.*
Documents/HORARIO.odt: application/vnd.oasis.opendocument.text
Documents/HORARIO.pdf: application/pdf
$ mimetype Documents/HORARIO.*
Documents/HORARIO.odt: application/vnd.oasis.opendocument.text
Documents/HORARIO.pdf: application/pdf

The problem also exists with other desktop environments, such as XFCE:

But works fine in Plasma:

In plasma, Okular can open links too.

Also, outside of plasma, making double click in a file on Dolphin doesn’t work.

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

2. Link one of the files

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

No need to restart, just open Dolphin again and it works.

I don’t know how it was working before plasma 6 though

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.