electron: Electron can not select files and folders at the same time
- Output of
node_modules/.bin/electron --version: 3.0.1 also tested on: 4.0.1 *System: Ubuntu 18.04.1 LTS/Windows 10 1809 - Output of
node_modules/.bin/electron --versionon last known working Electron version (if applicable): -
Expected Behavior After the documentation of the dialog component (https://github.com/electron/electron/blob/master/docs/api/dialog.md) i would assume calling showOpenDialog({ properties: [‘openFile’, ‘openDirectory’, ‘multiSelections’] }) would open a file explorer where i can select multiple files and folders.
Actual behavior Ubuntu/Windows:: You can only select folders.
To Reproduce
$ git clone https://github.com/DZiso/electron-multi-select-file-and-folder
$ cd electron-multi-select-file-and-folder
$ npm install
$ npm run start
Press the button “Click me to open File Explorer”.
Additional Information Started with no parameters you can select files & folders while browsing “latest Files” in the ubuntu explorer, but not if you change to any other folder.(Related: https://github.com/electron/electron/issues/16163)
Windows and Ubuntu are “plain” installation with no changes to the file explorer. IntelliJ/Git/node is installed on both. Windows is running as a virtual Machine under KVM.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (1 by maintainers)
Isn’t this the same behavior the documentation mentions under
showOpenDialog?