How to change the "Open file manager" application?

I uninstalled Nautilus from my Debian and Fedora templates as I want to use Thunar instead. But now when I select any qube from the qubes systray menu (or the launcher menu) and select “Open file manager”, it doesn’t open Thunar. On Debian based qubes it opens Kate (text editor) and on Fedora based qubes it opens the disk usage analyzer.

This doesn’t make any sense. There must be a way to change the program which opens when you use that menu option?

In the launcher menu you can open Thunar directly of course, but the systray menu is pretty handy, and now opening file manager from there doesn’t work correctly.

I had a similar issue with my personalized templates - and - resolved it in the following way:

    [user@fedora-python-study-vm ~]$ 
    [user@fedora-python-study-vm ~]$ touch ~/.config/mimeapps.list
    [user@fedora-python-study-vm ~]$ 
    [user@fedora-python-study-vm ~]$ vi ~/.config/mimeapps.list
    [user@fedora-python-study-vm ~]$ 
    [user@fedora-python-study-vm ~]$ cat ~/.config/mimeapps.list
    [Default Applications]
    inode/directory=org.kde.dolphin.desktop;
    [user@fedora-python-study-vm ~]$ 

    ### Verified the change ...

    [user@fedora-python-study-vm ~]$ 
    [user@fedora-python-study-vm ~]$ xdg-mime query default inode/directory
    org.kde.dolphin.desktop
    [user@fedora-python-study-vm ~]$

Not sure if it is the best way - but - it works for me :wink:

3 Likes

This would be better and scriptable.

xdg-mime default org.kde.dolphin.desktop inode/directory

Of course, this example is to use dolphin to open directories. The desktop file must refer to a program that is installed.

4 Likes

Thank you, looks like “xdg-mime default thunar.desktop inode/directory” works.

However there is quite some work to do since that setting is apparently saved in user directory, so this change must be done in every template and every old AppVM and every old disposable template.

The whole “MIME” thing seems to work like trash, I also remember that Firefox had problems to open certain files in correct application. It selected applications that didn’t make any sense. Just like it doesn’t make any sense to select a text editor as file manager.