GNOME Notification -> Show in Files opens vs code

  1. Took a screenshot
  2. GNOME displays a notification with an entry “Show in Files”
  3. Clicking on it opens the image in VS Code

How to fix this?

  1. Check what’s the default. Default is set as code.desktop
$ gio mime "inode/directory"                                                                              
Default application for “inode/directory”: code.desktop
Registered applications:
	code.desktop
	easytag.desktop
	org.gnome.Nautilus.desktop
	ranger.desktop
  1. Set the desired app as default
$ gio mime "inode/directory" org.gnome.Nautilus.desktop                                                   
Set org.gnome.Nautilus.desktop as the default for inode/directory
  1. Check again. Default is now set to Nautilus.
$ gio mime "inode/directory"                                                                              
Default application for “inode/directory”: org.gnome.Nautilus.desktop
Registered applications:
	org.gnome.Nautilus.desktop
	code.desktop
	easytag.desktop
	ranger.desktop

1 Like

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