directoryarchlinuxxdgutils

How to change the default opening of folders by vscode on Arch?


Whether on the desktop, the application dock, or even with search, gnome opens folders directly to vs-code. I would like it to open them for me with the default gnome file application. And strangely I don't have the problem when I try to open a folder from File Explorer.

Thank you for your help.

I did some manipulations a while ago but I don't remember which ones. I would like to be able to open my folders with File Explorer.


Solution

  • Modify the appropriate line in /usr/share/applications/mimeinfo.cache, switching the order of code and nautilus.

    From:

    inode/directory=code.desktop;org.gnome.Nautilus.desktop;
    

    To:

    inode/directory=org.gnome.Nautilus.desktop;code.desktop;