-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Linux file dialog does not use default file path #213780
Comments
Same problem with open folder dialog |
VS Code is awesome, but the open file dialog on Linux has been ridiculously buggy for years. More than two years to fix the problem of the dialog opening in the background. The fix, in the latest version, involves using a dialog inside a portal with no type-ahead support that opens in $HOME or recent files. The open/save file dialog is a crucial control in any application. There should be a way to use the native OS dialog. I'm going to downgrade to the previous version (1.89.1) and keep it as long as it takes. |
cc @codebytere |
We hadn't patched the portal code to support most of the file dialogs options, it is being addressed via electron/electron#42308. |
This is now addressed in the runtime via electron/electron#42655, fix will be available once we adopt #215406 |
Reopening since we have reverted the updated due to other regressions #223494, will be revisited in August. |
Filed electron/electron#43310 |
I'm on xfce on xubuntu 22.04. The problem is that instead of forcing the "Open File" path, to that of the current file being edited, vscode delegates the path selection to the operating system, which resolves the "Recent Files" path. Since recent files is truly not useful in vscode, I can at least pilot the path to be that of the home folder with
from the previous |
The issue is not resolved for me either. The file-open and directory-open dialogs still do not appear even though built on Electron 30.1.2. This is reproducible 100% of the time in openSUSE Tumbleweed and in Leap. |
The file-open/directory-open or save dialog not being shown remains unresolved on Linux in release 1.93.1 built with electron 30.4.0. |
The file-open/directory-open or file-save dialog not being shown remains unresolved on Linux in release 1.94, Triggering a file-open/directory-open/file-save dialog is fundamental to do anything useful with an application. I can see one release having one hiccup and there being a temporary issue, but this vital function for Linux users seems to have been broken for an extended period of time. Nothing on my setup has changed, it's a simple x-windows setup that supports native x-windows dialogs, Qt dialogs (KDE) and Gtk dialogs (Gimp Toolkit, now more Gnome toolkit). There are also wx-widgets dialogs available. The last release to provide a working file-open/save dialog on Linux is:
Judging from the dialog opened in 1.89 it seems to be triggering the Gtk file-open dialog, the same triggered by file-open in firefox, e.g. This needs to be fixed. There are many improvements between ver. 1.89 and 1.94 that are simply not available to Linux users (unless they go to extreme measures to manage open files from the command-line, unrealistic) I'm happy to test if you come up with a scenario that needs testing. I'm currently running openSUSE Tumbleweed, so all packages are standard and are current versions. |
@drankinatty can you start v1.94 with |
Testing #213763
Version: 1.90.0-insider
Commit: fc8762e
Date: 2024-05-29T05:51:07.154Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 5.15.0-107-generic
File > Open FIle
. This opens a file selection dialog initialized to the home folderThe text was updated successfully, but these errors were encountered: