-
Notifications
You must be signed in to change notification settings - Fork 30k
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
I set Dolphin as default file manager, but VSCode opens Nautilus instead of Dolphin #50386
Comments
(Experimental duplicate detection) |
@gusbemacbe what do you mean by step 3 "open a folder"? "Opening a folder" in VS Code means clicking on the folder in the explorer (and that works fine for me). |
Inside VSCode, I selected File -> Open Folder ... |
Aha, you mean VS Code uses the wrong "open file dialog". |
I'm also facing same problem |
@gusbemacbe did you try with our latest insider release that comes with Electron 2.0.x and GTK3 support? Just wondering if that would change anything here. |
Sorry for my absence, I was sick. ON Manjaro, it supports perfectly GTK3, but it still opens Nautilus instead of Dolphin File. On Deepin OS, it does not support GTK3, and still also opens Nautilus instead of Deepin File Manager. |
Still an issue. Would be nice if VSCode just used the default file manager or if there was at least a setting for changing this manually. Nautilus can be used, but it does not integrate well in KDE, it sometimes is quite annoying. |
Please recommend to me better solution for this issue. I want to use deepin file manager but vscode runs. |
Same problem here |
Seems not to be fixed yet. Could you reopen the issue and (if you agree) remove the "more info needed" tag? @gusbemacbe @bpasero |
+1 |
I have the same problem on Kubuntu 18.04 as well. |
Me too. I am using Deepin 15.9.2 |
How does VS Code communicate with the operating system's file manager, I wonder? If someone could point me to the code that does this it'd be great. |
I see, that really clarifies things. Would you mind pointing me to where the GTK part of the source code resides? I'd love to learn more about how VSCode works internally. Thanks! |
VSCode is not built with GTK but with TypeScript with packaging and run time via Electron. Electron needs to be updated to be aware of its desktop environment. Every Electron app has this issue - ie its an upstream issue and not VSCode - electron/electron#2911 (comment) |
That article mentions |
Using I just checked |
I'm running Pop OS! 21.04 and have Dolphin as my default file browser however VSCode uses the GNOME default file manager (Nautilus) that ships with GNOME instead. It's very annoying, the GNOME default file is much less capable and has an emphasis on aesthetics over function, for example, I can't paste an address into the address bar (when using an extension) see screenshot. |
You need to wait for VSCode to ship with Electron 14+. It currently ships with 13. |
When can we expect it to ship with Electron 14+ |
Wondering if you actually had to export GTK_USE_PORTAL=1? I would think any reasonable distro would export that automatically. I think I had a conversation with @deepak1556 about setting the environment variable in the |
Please don't mass ping people like that. If they're interested in the issue they'll be watching it. |
I'm still having issues with this. If I'm running VSCode in a gnome session, it still uses Nautilus for its file dialog. |
Nautilus is not a file chooser. In GNOME, the file chooser is the GTK file chooser which is what is supposed to happen. Use KDE if you want the KDF file chooser. |
@tristan957 it doesn't work on KDE either |
It indeed does work on KDE. You just have to set it up and be using VSCode insiders. |
Can confirm that this is the case for now. Does indeed work fine in KDE session using the Insider build. Still looking for a way to override the default file chooser in a Gnome session. |
Despite other applications working flawlessly with the KDE file picker in both OpenSUSE Tumbleweed and Ubuntu 20.04, I cannot get this to work for VSCode insiders. |
Make sure you have the environment variable GTK_USE_PORTAL=1 set |
It is set in my environment, it is also set explicitly inside |
Don't know what to tell you. It works for other people as evidenced by the thread. :( |
Same here |
Can confirm it works on Arch Linux but doesn't work on Tumbleweed. |
BTW, should it work on the regular (not Insider) release? It is Electron 17 already. It does not work on Kubuntu 21.10 to me. |
No description provided.
The text was updated successfully, but these errors were encountered: