The idea is to already have the needed programs in the 'Open with' context-menu for a selected folder without the need to select "Other application".
Editing the line inode/directory=
in /usr/share/applications/mimeinfo.cache
is not useful because, as indicated in a comment by don_crissti, the problem re-appears after an update or a program install because of the command update-desktop-database
.
In fact only some programs will take over the file manager role as indicated by the question, but those that do will in some cases take over directly, simply after their installation, and will do again after update-desktop-database
.
As suggested here by the aforementioned user, you need to edit ~/.local/share/applications/mimeapps.list
like:
[Default Applications]
inode/directory==nemo.desktop;audacious.desktop;deadbeef.desktop;vlc.desktop
In another system (Cinnamon Manjaro, where there is no mimeapps.list
in usr/share/applications
, only mimeinfo.cache
and seems non-freedesktop-complient) the file to use is ~/.local/share/applications/mimeinfo.cache
with a content like
[MIME Cache]
inode/directory==nemo.desktop;audacious.desktop;deadbeef.desktop;vlc.desktop
It is essential to put the file manager first and then the programs to add to the 'open with' context menu.
For example, the above will give
Best Answer
You could try editing
/usr/share/applications/defaults.list
and changing the lineto
or some order that suits your needs.