Reputation: 161
I just installed Visual Studio code a few minutes ago, and now I have this problem. When I press super + e instead of opening my explorer it now opens visual studio with it's explorer open. Obviously I do not want visual studio to be opened everytime I press this shortcut and would like to be able to use it to browse through files. Thanks for any help.
Update: It seems to have replaced the default explorer for alot of things, for example if I click on removable drives then click file manager, the folder will open up in vscode.
Upvotes: 6
Views: 2290
Reputation: 131
The solution is:
vi ~/.config/mimeapps.list
inode/directory=code.desktop
in some placesUpvotes: 0
Reputation: 1277
For the case where your default file explorer is gnomes nautilus "files":
xdg-mime default org.gnome.Nautilus.desktop inode/directory application/x-gnome-saved-search
Upvotes: 0
Reputation: 21
I find the ans from super + e opens VS Code on Linux Deepin
The solution is to change the order of apps open
code /usr/share/applications/mimeinfo.cache
find
inode/directory
assigncode.desktop;dde-file-manager.desktop;
to it
The above solution is useful and directly for me to solve the problem.I just need to edit the file /usr/share/applications/mimeinfo.cache
, move dde-file-manager.desktop;
to the position which is former than vscode.
BTW, I have tried to type xdg-mime default dde-file-manager.desktop inode/directory application/x-gnome-saved-search
in my terminal but it seems nothing happen.
Upvotes: 2
Reputation: 71
For deepin 15.10 use
xdg-mime default dde-file-manager.desktop inode/directory application/x-gnome-saved-search
Upvotes: 7
Reputation: 161
I figured out the solution, so the default file browser is called nemo for anyone who doesn't know. I simply had to use the command below in the terminal to set nemo as the default browser again and now it's all good.
xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
Upvotes: 10