nwjs

Node-Windows - Run GUI app on Logon screen

╄→гoц情女王★ 提交于 2019-12-22 12:18:31
问题 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 necessary. The app is just a basic socket client that connects to a socket server, nothing special as of yet. I am thinking maybe if I use child_process.spawn() to open an elevated command-prompt and/or runas another user-- but what user? SYSTEM doesn't do

Platform issue in require('os')

时光毁灭记忆、已成空白 提交于 2019-12-13 03:36:43
问题 I have created an Ionic 3(A5) app. I am running this as node-webkit (NW.JS) app on Mac. If I write inside index.html script tag and check, require('os') platform returns ' darwin ' and require('fs') returns full set of object correctly. But if I write same script inside a .ts file - require('os') platform returns ' browser ' and require('fs') returns empty object. I am using @types/node in devDependencies. Code inside index.html - var os = require('os'); var fs = require('fs'); console.log(

NWJS, Electron - DOM not updating during long-running process

孤人 提交于 2019-12-11 15:18:06
问题 Just as in this unanswered question, I have a long-running process, during which I wish to update an the HTML of the app's only window -- but the DOM does not get updated until after the above process has completed. This is the case with both NW and Electron. The code is getting called, because the same routine also logs to the console - which is access through a window instance passed to the process, which is in a Node module. I can find no documentation that references such issues, and no

Node-Windows - Run GUI app on Logon screen

你。 提交于 2019-12-06 07:16:43
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 necessary. The app is just a basic socket client that connects to a socket server, nothing special as of yet. I am thinking maybe if I use child_process.spawn() to open an elevated command-prompt and/or runas another user-- but what user? SYSTEM doesn't do it. I'm thinking whatever winlogon.exe runs as, but that doesn't seem to be SYSTEM even though that's

electron url scheme “open-url” event

大兔子大兔子 提交于 2019-11-30 13:08:16
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? This is a mac-only feature. The closest alternative is app.makeSingleInstance(callback) . You can arrange for your app to be launched with the url as argument: myApp my-scheme://stuff Then callback is called with the url in whichever app process was launched first. From mine similar Q/A at SO : It's about opening app and pass parameters with deep

electron url scheme “open-url” event

那年仲夏 提交于 2019-11-29 18:38:42
问题 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? 回答1: This is a mac-only feature. The closest alternative is app.makeSingleInstance(callback). You can arrange for your app to be launched with the url as argument: myApp my-scheme://stuff Then callback is called with the url in whichever app process