Skip to content
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

Closed
gusbemacbe opened this issue May 24, 2018 · 75 comments · Fixed by #137241 or #143223
Closed
Assignees
Labels
electron Issues and items related to Electron fixed-in-electron-14 Issues fixed with Electron 14.x update insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-fixed The underlying upstream issue has been fixed
Milestone

Comments

@gusbemacbe
Copy link

gusbemacbe commented May 24, 2018

No description provided.

@vscodebot
Copy link

vscodebot bot commented May 24, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@weinand
Copy link
Contributor

weinand commented May 24, 2018

@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).

@weinand weinand added the info-needed Issue requires more information from poster label May 24, 2018
@gusbemacbe
Copy link
Author

Inside VSCode, I selected File -> Open Folder ...

@weinand weinand removed the info-needed Issue requires more information from poster label May 24, 2018
@weinand
Copy link
Contributor

weinand commented May 24, 2018

Aha, you mean VS Code uses the wrong "open file dialog".

@bpasero bpasero added upstream Issue identified as 'upstream' component related (exists outside of VS Code) linux Issues with VS Code on Linux electron Issues and items related to Electron labels May 24, 2018
@saileshkush95
Copy link

I'm also facing same problem

@gusbemacbe
Copy link
Author

@weinand and @bpasero, the same problem still insists. I am using Deepin OS and Manjaro, VSCode opens the ugly X11/Xorg-based Nautilus instead of Deepin File (Deepin OS's default file manager) and Dolphin (Manjaro's).

@bpasero
Copy link
Member

bpasero commented Aug 6, 2018

@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.

@bpasero bpasero added the info-needed Issue requires more information from poster label Aug 6, 2018
@gusbemacbe
Copy link
Author

@bpasero

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.

@davidpomerenke
Copy link

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.

@ulziibat-n
Copy link

Please recommend to me better solution for this issue. I want to use deepin file manager but vscode runs.

@cmpute
Copy link

cmpute commented Apr 22, 2019

Same problem here

@davidpomerenke
Copy link

Seems not to be fixed yet. Could you reopen the issue and (if you agree) remove the "more info needed" tag? @gusbemacbe @bpasero

@bpasero bpasero reopened this Apr 23, 2019
@bpasero bpasero removed the info-needed Issue requires more information from poster label Apr 23, 2019
@ulziibat-n
Copy link

+1

@chrisshyi
Copy link

I have the same problem on Kubuntu 18.04 as well.

@ulziibat-n
Copy link

Me too. I am using Deepin 15.9.2

@chrisshyi
Copy link

chrisshyi commented Apr 25, 2019

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.

@chrisshyi
Copy link

@gusbemacbe

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!

@tomdavidson
Copy link

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)

@sylveon
Copy link
Contributor

sylveon commented Apr 25, 2019

That article mentions kdialog for Chromium. Since Electron uses Chromium, I'd expect it to work.

@deepak1556 deepak1556 added the fixed-in-electron-14 Issues fixed with Electron 14.x update label Jul 28, 2021
@towen
Copy link

towen commented Oct 4, 2021

Using code_1.60.2-1632313585_amd64.deb on Debian Sid with KDE (GNOME is not installed, but obviously GTK is) also installed xdg-desktop-portal and xdg-desktop-portal-kde and set GTK_USE_PORTAL=1 but code still uses the 🤬 GNOME filepicker.

I just checked /usr/share/code/resources/app/package.json and it seems the latest Code 1.60.2 has been updated to use Electron 1.13.8 😭
Is there any way to force it to use Electron 14.0.1 instead?

@aindriu80
Copy link

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.

2021-11-30_10-22

@tristan957
Copy link

tristan957 commented Nov 30, 2021

You need to wait for VSCode to ship with Electron 14+. It currently ships with 13.

@103sbavert
Copy link

When can we expect it to ship with Electron 14+

@tristan957
Copy link

tristan957 commented Feb 10, 2022

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 code.sh file, but I never submitted a PR because it should either be automatic or a user can opt-in. I would be happy to submit a PR to the official docs however.

@sylveon
Copy link
Contributor

sylveon commented Feb 10, 2022

Please don't mass ping people like that. If they're interested in the issue they'll be watching it.

@runil
Copy link

runil commented Mar 25, 2022

I'm still having issues with this. If I'm running VSCode in a gnome session, it still uses Nautilus for its file dialog.

@tristan957
Copy link

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.

@103sbavert
Copy link

@tristan957 it doesn't work on KDE either

@tristan957
Copy link

It indeed does work on KDE. You just have to set it up and be using VSCode insiders.

@runil
Copy link

runil commented Mar 26, 2022

I'm still having issues with this. If I'm running VSCode in a gnome session, it still uses Nautilus for its file dialog.

@runil, did you follow my tutorial above (click here)?

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.

@ryan-ronnander
Copy link

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.

@tristan957
Copy link

Make sure you have the environment variable GTK_USE_PORTAL=1 set

@ryan-ronnander
Copy link

Make sure you have the environment variable GTK_USE_PORTAL=1 set

It is set in my environment, it is also set explicitly inside code.sh, relevant packages are installed (xdg-*, kdialog, etc). Firefox functions as expected in KDE while VSCode does not. Followed the tutorial commands posted above just in case they're needed and that didn't help either.

@tristan957
Copy link

Don't know what to tell you. It works for other people as evidenced by the thread. :(

@103sbavert
Copy link

Make sure you have the environment variable GTK_USE_PORTAL=1 set

It is set in my environment, it is also set explicitly inside code.sh, relevant packages are installed (xdg-*, kdialog, etc). Firefox functions as expected in KDE while VSCode does not. Followed the tutorial commands posted above just in case they're needed and that didn't help either.

Same here

@KucharczykL
Copy link

Can confirm it works on Arch Linux but doesn't work on Tumbleweed.

@zomp
Copy link

zomp commented Apr 6, 2022

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.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
electron Issues and items related to Electron fixed-in-electron-14 Issues fixed with Electron 14.x update insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-fixed The underlying upstream issue has been fixed
Projects
None yet