Questions tagged [nwjs]

NW.js (formerly node-webkit) is an app runtime based on Chromium and Node.js. You can write native apps in HTML and JavaScript with node-webkit. It also lets you call Node.js modules directly from the DOM and enables a new way of writing native applications with all Web technologies.

NW.js (formerly Node-Webkit) is an app runtime based on and . You can write native apps in HTML and JavaScript with node-webkit. It also lets you call Node.js modules directly from the DOM and enables a new way of writing native applications with all Web technologies. It is developed by Intel at the Intel Open Source Technology Center.

was renamed in January, 2015 because Chromium's switch from Webkit to Blink combined with a switch from Node.js to IO.js meant that the runtime was no longer based on either "Node" or "Webkit".

Resources

245 questions
17
votes
3 answers

Copy a source file to another destination in Nodejs

I'm trying to copy an image from a folder to another using fs-extra module . var fse = require('fs-extra'); function copyimage() { fse.copy('mainisp.jpg', './test', function (err) { if (err) return console.error(err) }); } This…
Hammas
  • 1,126
  • 1
  • 12
  • 37
14
votes
2 answers

electron url scheme "open-url" event

I did the following in my index.js; electron.remote.app.on("open-url", function(event, url) { console.log("Open URL: " + url); }); This gets triggered in Mac OS, but not in Windows. Is there another event or a different way to do it in windows?
user429620
12
votes
3 answers

Unsealed contents present in the root directory of an embedded framework

I am facing this issue when i try to sign the nwjs framework codesign -f -v --deep -s '3rd Party Mac Developer Application: Company Name. (XXXXXXXXX)' --entitlements Child.plist hello.app/Contents/Versions/59.0.3071.115/nwjs\…
Swati
  • 2,870
  • 7
  • 45
  • 87
7
votes
1 answer

How can I run a Chrome extension in NW.js?

This question is pretty short and self explanatory. I'm wondering how I can run my Chrome extension in NW.js. I know you can run an app in NW.js and I think you can run extensions as well? I can't find much on the topic. Back in 2013 the way to do…
Slbox
  • 10,957
  • 15
  • 54
  • 106
6
votes
4 answers

How to check when the computer is idle in NodeJS?

I want to run a process in the background in NodeJS, that wait until the computer not in use for 10 minutes. I mean the user do not touch the keyboard or the mouse. In other words: I want to listen to keyboard and mouse events in any window, and…
Aminadav Glickshtein
  • 23,232
  • 12
  • 77
  • 117
5
votes
2 answers

Node-Windows - Run GUI app on Logon screen

I need to run a GUI app on the logon screen on Windows 7 to 10. I have a nodejs app registered as a service which runs as SYSTEM (the default), using node-windows module. This seems to be a prerequisite to what I need, but something more is…
jdmayfield
  • 1,400
  • 1
  • 14
  • 26
5
votes
1 answer

javascript - Capturing console with line number

How do I capture the line number of logs when capturing the console? (Chrome only - other browsers not relevant for me) I have the below to capture all logs; consoleLogs: [], init: function(){ app.captureConsole(); }, captureConsole:…
Abdul Sadik Yalcin
  • 1,744
  • 2
  • 19
  • 50
5
votes
0 answers

Firebase cloud messaging "Registration failed - push service error" on Electron and node-webkit

I am trying to implement Firebase web cloud messaging on node-webkit (NWJS) application, but when I try to get a token its returning a error: "Registration failed - push service error". Here is the code snippet I am using to get the token after…
5
votes
0 answers

NPM show update progress programmatically

I want to use NPM as the update engine for a NWJS desktop app. I know its possible to hook up to the NPM api to programatically install packages and my understanding is that the same API can be leveraged for NPM updates. I'd like is to show a…
Steven de Salas
  • 20,944
  • 9
  • 74
  • 82
4
votes
2 answers

Hard browser refresh using nwjs on Mac

Is there a way to do a hard browser refresh when running an app with nwjs, on Mac? nwjs's right click 'simulate browser restart' seems to start the app at its entrypoint again. Is there a way to simulate the behavior of simply clicking the shift…
ffConundrums
  • 765
  • 9
  • 24
4
votes
2 answers

load local files outside NWJS app

When I work locally I want to share code among two or more (nwjs and other kinds of) projects. Folder structure: -project 1 -project 2 -shared code When releasing the apps I build the external files into a file inside each project app. But I cannot…
jerry
  • 145
  • 3
  • 13
4
votes
2 answers

node-webkit not minimizing to tray if window.location.href is set

Windows 7 x64, nwjs 0.19.4 Minimize to tray works fine without setting window.location.href, but when set nwjs will not minimize to tray. Revised Code Per Request: index.html