nwjs/nw.js

nwworkingdir file dialog not working on Ubuntu 22.04

pd-l2ork opened this issue · 2 comments

Issue Type

Before opening an issue, please search and see if it has already been raised.

  • Bug Report

  • Feature Request

  • 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:
image

Clicking Choose File goes to Recent instead of the nwworkingdir file path:
image