neutralinojs icon indicating copy to clipboard operation
neutralinojs copied to clipboard

File or folder dialog functions do nothing

Open MiloLug opened this issue 2 years ago • 2 comments

API functions as showFolderDialog, showSaveDialog and showOpenDialog do nothing on systems without default file manager. They just return empty arrays or empty strings etc. but don't even throw an error.

Steps to reproduce the behavior: For this you need a simple Linux setup with a window manager (like DWM) and no file explorer. Then you can run a simple neutralino app that just tries to use showOpenDialog.

Expected behavior If you try to use plain html file input, then it will open the default browser's manager. I suppose browsers ship some common file managers with them, so I expected neutralino API to use such fallback.

Environment Neutralinojs version: v4.9.0 Neutralinojs client library version: v3.8.0

MiloLug avatar Dec 15 '22 17:12 MiloLug

Sounds more like a feature than a bug. Different browsers have their native ways of opening browser managers that aren't fully cross platform supported or reproducible programmatically. But it is a good feature/fallback to have; just with complex checks and additional code.

danidre14 avatar Dec 16 '22 02:12 danidre14

Hi, Can I work on this issue.

dhruvgupta0503 avatar Mar 06 '24 15:03 dhruvgupta0503