node-webkit

How to clear the cache data in Electron(atom shell)?

流过昼夜 提交于 2020-01-30 17:49:53
问题 I want to clear cache data in Electron(atom-shell). I don't find any api like gui.App.clearCache()(node-webkit api to clear cache data) in Electron. If you find any api or any other way please let me know. comments are appreciated . 回答1: The Electron stores it's cache in these folders: Windows: C:\Users\<user>\AppData\Roaming\<yourAppName>\Cache Linux: /home/<user>/.config/<yourAppName>/Cache OS X: /Users/<user>/Library/Application Support/<yourAppName>/Cache So deleting these folders can

How can I start a Meteor instance before launching a node-webkit?

戏子无情 提交于 2020-01-21 05:22:08
问题 I have developed a Meteor app. I would like to package this app in the node-webkit app runtime for Chromium. I need the Meteor server process to run locally. How would I go about starting the Meteor server process when a user launches the node-webkit app? I know I can start a NodeJS server instance with node-webkit like this: server.js #!/usr/bin/env node require('http').createServer(function(req, res) { res.writeHead(200, {'content-type': 'text/html'}); res.end('<h1>sup</h1>'); }).listen

Impossible to set the window on top of the top of the top window?

二次信任 提交于 2020-01-17 08:05:37
问题 I have kiosk application, where i have already kiosk application running but on top of that window i need to put one of my window which is forever available no matter who ever is on top, that window has to be on top of the top of the very top window as always on top. i tried several way but still it fails to stay on top of the window out all top of the window Why is my application still unable to stay to the very top of the top? Imports System.Runtime.InteropServices Public Class Form1

Detecting node-webkit during npm install

你说的曾经没有我的故事 提交于 2020-01-14 10:43:10
问题 I'm working on a library for node.js that is build primarily as a native module. As such, when people try to include it in node-webkit projects, they have to recompile it using nw-gyp instead of node-gyp . I know we can detect node-webkit specifically when our built code runs using something like this: try { isNodeWebkit = (typeof require('nw.gui') !== "undefined"); } catch(e) { isNodeWebkit = false; } However, I would like to detect this inside of our install script (run by npm install ).

Detecting node-webkit during npm install

本小妞迷上赌 提交于 2020-01-14 10:43:07
问题 I'm working on a library for node.js that is build primarily as a native module. As such, when people try to include it in node-webkit projects, they have to recompile it using nw-gyp instead of node-gyp . I know we can detect node-webkit specifically when our built code runs using something like this: try { isNodeWebkit = (typeof require('nw.gui') !== "undefined"); } catch(e) { isNodeWebkit = false; } However, I would like to detect this inside of our install script (run by npm install ).

nwjs reactjs, confused about my context. Document is undefined

好久不见. 提交于 2020-01-13 05:59:28
问题 In my nwjs application i am using React to build my UI. Currently, React is being loaded via a <script> tag in the main file, index.html. index.html has another <script> tag which loads main.js containing code which defines and renders my React components as well as requiring ( require() ) a few Node modules such as "fs" and "McFly". This all seems to be working, however when i try using another node module (react-inlinesvg) i get an error, "document is undefined". Having looked online for

Making a node.js application a PEER with WebRTC

拟墨画扇 提交于 2020-01-12 07:30:10
问题 So, I have a web app that generates large buffers of color information that I want to send to a node application running on another machine in my local network. Web Sockets doesn't seem to be fast enough for me. I was looking to use UDP and it seems WebRTC is the only way to do that from a browser. The caveat, it seems, is WebRTC is only PEER to PEER (browser to browser). I figured, I could use node webkit to emulate being my other "PEER". In my node app I could handle the "signaling" and

Node-Webkit Child Process Exec

拟墨画扇 提交于 2020-01-06 02:20:33
问题 I want to execute a homebrew command for example brew list I followed the documentation and executed it like this: child = exec('brew', function (error, stdout, stderr) { console.log(stdout); console.log(stderr); }); I am getting a command not found error, and realized that if I do /usr/local/bin/brew as the command it works. However simply using 'brew' should work as well since I can run 'brew' from the command line just as such. Why is this the case and what does it take to make 'brew' run

Require('jquery-ui') in node-webkit produces navigator not found error

你。 提交于 2020-01-04 14:31:22
问题 I have installed jquery and jquery-ui via npm for my node-webkit project. I also have a index.html which is loaded by node-webkit at startup and which loads a core.js . This core.js requires both jquery and jquery-ui . When I start the app I get a navigator is not defined error. I tried googling it but found no solution. Has anyone an idea what causes this? 回答1: This problem is unrelated to jquery-ui. I can reproduce it with // index.html <script> require('./test.js'); </script> // In test.js

Require('jquery-ui') in node-webkit produces navigator not found error

為{幸葍}努か 提交于 2020-01-04 14:31:11
问题 I have installed jquery and jquery-ui via npm for my node-webkit project. I also have a index.html which is loaded by node-webkit at startup and which loads a core.js . This core.js requires both jquery and jquery-ui . When I start the app I get a navigator is not defined error. I tried googling it but found no solution. Has anyone an idea what causes this? 回答1: This problem is unrelated to jquery-ui. I can reproduce it with // index.html <script> require('./test.js'); </script> // In test.js