I want to give the user any option he want to edit a file, how can I open a file with the default program of the specific file type? I need it to work with Windows and Linux
For file on a disk:
var nwGui = require('nw.gui'); nwGui.Shell.openItem("/path/to/my/file");
For remote files (eg web page):
var nwGui = require('nw.gui'); nwGui.Shell.openExternal("http://google.com/");