Skip to content

GTK3 file chooser overwrites "Show hidden files" setting in Linux/GNOME #46817

@zonescape

Description

@zonescape

Preflight Checklist

Electron Version

34.3.2, 35.3.0, 36.2.0, 37.6.0, 38.2.1, 39.0.0-alpha.8

What operating system(s) are you using?

Ubuntu

Operating System Version

Ubuntu 22.04.5 LTS

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

  • Make hidden files displayed in the GTK file chooser:
$ dconf write /org/gtk/settings/file-chooser/show-hidden true
  • Run fiddle
  • Hidden files are displayed

Actual Behavior

Hidden files are not displayed. This behaviour is inconvenient but it would be OK if the file chooser didn't overwrite this property on close, as it normally does. Thus, after closing the file chooser, hidden files are not displayed in every app on the computer.

Testcase Gist URL

https://gist.github.com/zonescape/f6392b22bad8a7dd7a854d9080f3bc61

Additional Information

Above gist has the same code as in Fiddle Show Me -> Electron APIs -> Dialog but with the command line option copied from VSCode. This option replaces default GTK4 dialog with GTK3 version.

Related bugs:

  • Electron (at the time of writing, this bug was mistakenly closed)
  • VSCode
  • Fiddle 0.36.6 itself has this bug
  • Ubuntu

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status
🛠️ Fixed for Next Release

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions