neutralinojs / neutralinojs

Portable and lightweight cross-platform desktop application development framework
https://neutralino.js.org
Other
7.48k stars 377 forks source link

File or folder dialog functions do nothing #1049

Open MiloLug opened 1 year ago

MiloLug commented 1 year ago

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

danidre14 commented 1 year ago

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.

dhruvgupta0503 commented 8 months ago

Hi, Can I work on this issue.