nw.js
nw.js copied to clipboard
nwworkingdir file dialog not working on Ubuntu 22.04
Issue Type
Before opening an issue, please search and see if it has already been raised.
-
[x] Bug Report
-
[ ] Feature Request
-
[x] Successfully reproduced against the latest version of NW.js?
Please use our mailing list or Gitter chatroom to ask questions. The issue tracker is only for bugs and feature requests, in English only. Please note that issues without a repro or code snippet are less likely to be resolved.
Current/Missing Behavior
nwworkingdir used to work when opening file dialogs up until Ubuntu 22.04 using both nwjs 0.67.1 and 0.80 in both nw1 and nw2 modes. Now it doesn't and reverts to recent files in the file dialog.
Expected/Proposed Behavior
Filedialog should open nwworkingdir.
Additional Info
- Operating System: Ubuntu 22.04 64-bit
- NW.js Version: 0.67.1 and 0.80.0
- Repro Link:
- Code snippet:
- Crash report:
Min Repro:
package.json
{
"name" : "nwworkingdir-repro",
"main": "index.html"
}
index.html
<body>
<input type="file" nwworkingdir=".">
</body>
Window with file input:
Clicking Choose File
goes to Recent
instead of the nwworkingdir
file path:
True also on Arch / Manjaro. Did some bisecting with the minimal example provided by @ayushmanchhabra and found that the last version with nwworkingdir working is 0.55.0. 0.56.0 already has the bug.