-
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
File open dialog ignores defaultPath #228168
Comments
I tested require 'gtk3'
dialog = Gtk::FileChooserDialog.new(:title => 'Gtk::FileChooser sample',
:action => :open,
:buttons => [[Gtk::Stock::OPEN, :accept],
[Gtk::Stock::CANCEL, :cancel]])
dialog.set_current_folder("/home/vladimir/curb")
dialog.run
```ruby
require 'gtk3'
dialog = Gtk::FileChooserDialog.new(:title => 'Gtk::FileChooser sample',
:action => :open,
:buttons => [[Gtk::Stock::OPEN, :accept],
[Gtk::Stock::CANCEL, :cancel]])
dialog.set_current_folder("/home/vladimir/curb")
dialog.run It works, but it's not the same dialog as used by code, chrome, telegram. Sublime text and slack use it, though. And according to my old code for devilspie2 it was used by code before --- old version of dialog
--- if (get_application_name() == 'code' and get_window_role() == 'GtkFileChooserDialog') then focus_window() center(); end
--- new dialog
if (get_application_name() == 'xdg-desktop-portal-gnome' and get_window_type() == 'WINDOW_TYPE_DIALOG') then focus_window() center(); end |
This is tracked in #213780 Issue will be fixed with newer runtime updates this month, relevant upstream fix electron/electron#43570 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Does this issue occur when all extensions are disabled?: Yes/No
Yes
1.93.0
4849ca9
x64
Ubuntu 22.04.4 LTS
Steps to Reproduce:
Expected result: Directory containing this file is opened, it worked like this before
Actual result: "Recent files" are opened
I tried to run
$ code --disable-extensions --verbose --log trace
and got thisso,
defaultPath
is set, but file dialog still points to "Recent files"UPD: This screenshot was made before I updated VS Code, but the problem remains after the update
I inspected window type with
devilspie2
The text was updated successfully, but these errors were encountered: