microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.18k stars 28.84k forks source link

VSCode opens automatically when I plug in a mass storage device or click on "open with File Manager" (dolphin) #230406

Open moefear85 opened 2 days ago

moefear85 commented 2 days ago

Does this issue occur when all extensions are disabled?: Yes/No yes

Steps to Reproduce:

  1. plug in msc
  2. click on "open with file manager"

I think vscode helped itself to auto-handle some mime-type that I did not ask it to, which usually gets handled by dolphin. Please don't do this microsoft. undo it. really lame mcro d*** move. vscode is awesome, but disguisting to consider itself anywhere close to a sufficient replacement for dolphin.

Abrifq commented 2 days ago

You can change what is launched for opening a directory via the Default Application chooser application in your DE (for example, KDE has it in the settings) or just change it throughout the system via xdg-mime.

To change it back to dolphin, you can use xdg-mime default dolphin.desktop inode/directory inode/mount-point and then try again after logging in. Depending on the DE, it might get overridden with DE's default application first so try checking your DE's Default Application settings first.