Last active
February 2, 2021 04:55
-
-
Save kerbrose/db12090d5ec7b97d4385971e1204b458 to your computer and use it in GitHub Desktop.
vscode_mess_open_folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
layout.css.devPixelsPerPx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just wanted to follow up on this issue because I get the same behavior. | |
It also happens when using xdg-open to open a directory (e.g. xdg-open ~). | |
I also set nautilus as the default for inode/directory | |
➜ xdg-mime default nautilus.desktop inode/directory | |
➜ xdg-mime query default inode/directory | |
nautilus.desktop | |
but it still doesn't work. | |
Then I looked for the distribution-provided defaults for inode/directory | |
➜ cat /usr/share/applications/mimeinfo.cache | grep inode/directory | |
inode/directory=visual-studio-code.desktop;org.gnome.Nautilus.desktop; | |
and it seems the order here does matter, changing it to | |
inode/directory=org.gnome.Nautilus.desktop;visual-studio-code.desktop; | |
fixes the issue. | |
Sadly I'm not an expert in this field so I can't tell you if you can influence this or if this needs to be done after every update (I hope not because vs code is still registered). | |
It might be even a issue with gio (used here) and opening directories. | |
Because it works for text/plain as expected (it opens the file in gedit) | |
➜ xdg-mime query default text/plain | |
gedit.desktop | |
➜ cat /usr/share/applications/mimeinfo.cache | grep text/plain | |
text/plain=visual-studio-code.desktop;org.gnome.gedit.desktop; | |
➜ xdg-open ~/some.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment