-
Notifications
You must be signed in to change notification settings - Fork 28.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code opens folders instead of the file manager on some Linux distros #114425
Comments
(Experimental duplicate detection) |
In case, if you aren't able to see the recording. kindly check this link out: |
Last I looked into this, distros do all sorts of things when you register a mime type handler in a desktop file. Here is the responsible line, but AFAIK this is how we're meant to do it: vscode/resources/linux/code.desktop Line 11 in 36929d3
|
I'm not much technical, I'm new to this distro too. Can you please explain it more. How can i fix this issue? Or you guys will fix it in new update ? |
Ideally an expert who knows about this will show up to tell us what we're doing wrong. Right now we register as a handler of directories with |
So things are beyond my league. Sorry I wasn't much of a help. |
This must be fixed as a top priority |
Hi @palexdev, which Linux distro and desktop environment (DE) do you use? |
I'm using Garuda Linux (Arch), GNOME edition |
Did you install the On Ubuntu, when I type |
I installed visual-studio-code-bin from Chaotic AUR, version 1.74.2-1 If I execute |
This is incredibly infuriating. Just installing VSCode is enough to make my complete computer almost unusable until I find the right xdg-mime command. Please fix this ASAP! |
It also temporarily removed the file association for |
KDE-Neon 5.27 here. Got this issue using the Snap and Deb versions. Note that the below workaround only works for the Deb installation method, likely because the Solution (workaround) for me was the following:
The fix should work immediately. I'm not too sure who's responsible for fixing this. It seems that this could happen for any app that wants to assign itself as a potential candidate for opening folders. The fact it only happens on certain distros (namely KDE) suggests that KDE parses the |
Please link the bugs.kde.org bug here when you do, @TDuffinNTU. |
https://bugs.kde.org/show_bug.cgi?id=474920 Here's the bug I've filed with KDE's xdg-desktop-portal-kde project :) |
Ubuntu has a preference of Snap packages over debs (Snap VScode is suggested via the graphical store/CLI but the deb version requires manual installation). In which case, it's likely modifications to That may be why
Whereas using the deb version, VScode launched when attempting to open Dolphin via the same button on the app I was using. |
Potential upstream issues:
Also see https://bbs.archlinux.org/viewtopic.php?id=284814, where the suggestion is to add default file associations to mimeapps.list instead. |
For those who want to take a look why xdg chooses vscode over your file manager. This command could be useful.
|
Hello! I'm a KDE developer. I can confirm that VSCode should be added to the end of the |
@Pointedstick So, is this an issue on VS Code's end (i.e. is VS Code adding itself first)? |
@bzm3r It's likely not an issue on our end. Here's a link to a previous comment that suggests some other issues that could be happening #114425 (comment). I'll also have to confirm whether there's any way code can add itself to the end of the list rather than the beginning of the list with the update-desktop-database command. |
It's complicated. There are unfortunately competing standards for how default apps are determined in the Linux world. The problem is that VSCode conforms to none of them. |
@Ammar64 's solution worked for me, thanks a lot |
This software is not a plain text editor, and it's definitely not a file manager. Advertising compatibility with such overrides default OS handlers on many distributions, unnecessarily.
I'm using kali linux latest version.And after installing VSC, the drive paths on my desktop are opening in VSC. The paths for drives on my desktop opens just as if its a text file. Its just happing on desktop. I can access my drives from toolbar though. But still its quite strange and uncomfortable. After talking with team, they suggested me to use VSC insider. And due to some reasons, i wasn't able to reply to them for a week. And today i checked and its doing same on both. Kindly Check it out.
Screencast.2021-01-15.21.47.28.mp4
The text was updated successfully, but these errors were encountered: