VS Code opens folders on the desktop

I have Gnome 4X UI improvements installed on GNOME 44.
When I try to open a folder that I made on the desktop VS Code will open the folder.
I would like Nautilus to open folders, but could not find a tool or config file that could help me with that.
Rightclicking the folder icons will offer open with files, but VS code will open.
I may have overlooked something, so I could use some help here.

hi,
please post the output from the following terminal command:

cat ~/.config/mimeapps.list 

Hi,
if the output of

xdg-mime default org.gnome.Nautilus.desktop inode/directory

is

code.desktop

use

xdg-mime default org.gnome.Nautilus.desktop inode/directory

This sets the default application for the mimetype of the directories in the database back to nautilus

2 Likes