Electron File Dialog Can't Open Read-only Files #9860
Labels
electron
issues related to the electron target
file dialog
issues related to the file dialog
good first issue
good first issues for new contributors
help wanted
issues meant to be picked up, require help
Bug Description:
Before returning from
.showOpenDialog()
, theElectronFileDialogService
checks whether the selected files are both readable and writable for the current user. It seems the check for writability makes sense for the.showSaveDialog()
method, but not necessarily for the.showOpenDialog()
case, since 'opening' doesn't necessarily imply writing.theia/packages/filesystem/src/electron-browser/file-dialog/electron-file-dialog-service.ts
Lines 47 to 61 in 7e09e93
theia/packages/filesystem/src/electron-browser/file-dialog/electron-file-dialog-service.ts
Lines 83 to 91 in 7e09e93
Steps to Reproduce:
Cannot access resource at <path>.
The text was updated successfully, but these errors were encountered: