Skip to main content

Questions tagged [electron]

Electron (formerly Atom Shell) is a framework created by GitHub that lets you write cross-platform desktop applications using HTML, CSS and JavaScript. Electron is based upon Node.js and Chromium.

2 votes
1 answer
2k views

Fatal error when registering global shortcut in Electron

I have tried to register global keyboard shortcut using Electron's global-shortcut module, as per the documentation page. (https://github.com/atom/electron/blob/master/docs/api/global-shortcut.md) ...
user avatar
40 votes
2 answers
53k views

How can I access the BrowserWindow JavaScript global from the main process in Electron?

I want a menu, defined in the main process to call JavaScript code inside the current browser window in an Atom or Electron application. Getting main process globals from the browser window is const ...
Gaspard Bucher's user avatar
14 votes
4 answers
41k views

How to use node_modules within Electron?

Using electron in combination with Angular2, Typescript and Electron I am try to find out how to use a node module package installed via npm. The current problem is that I have to specify the location ...
chrisber's user avatar
  • 750
1 vote
1 answer
6k views

how to insert data into database in electron SQl as database And React as front end

I am new at Electron. I am trying to build a small app using Electron. What I am trying to do is to insert the data which is taken from front end. I am using SQL has database and react as front end ...
Hussian Shaik's user avatar
3 votes
0 answers
516 views

change size of electron (Atom Shell) WindowBrowser from command line or external program

I want to control the window size of an electron (atom-shell) WindowBrowser object from an external program. I know within the electron app code I can use the WindowBrowser.SetSize(w, h) method, but I ...
Kyle Keane's user avatar
1 vote
2 answers
557 views

Where is the source code for electron (atom-shell) Module.require?

I am using a custom require function which mimics nodejs require and it works fine. However, in electron, I get SecurityError: An attempt was made to break through the security policy of the user ...
Gaspard Bucher's user avatar
2 votes
0 answers
75 views

Using Node without global install

I'm working on a few Node & Electron (Atom Shell) projects and I'm curious how I could get them to work without the user having to install Node globally. I've seen a few applications do this by ...
glitchedbits's user avatar
1 vote
1 answer
4k views

Electron (Atom-Shell) Run unix command from link in page

I am trying to learn Electron (Atom-Shell) but I am finding it pretty tough to find documentation for it... I am simply trying to figure out how to create a link with <a href="something"></a&...
Connor Quick's user avatar
3 votes
0 answers
3k views

Electron App node-integration : How to access require() after POST

I'm building an electron app and have run into a problem with require being undefined when a page POSTs to itself. My goal is to use electron as a wrapper around an existing site that, unfortunately ...
Tim Mickey's user avatar
97 votes
6 answers
73k views

Where to store user settings in Electron (Atom Shell) Application?

I can't seem to locate a built in mechanism to store user settings. I was hoping that electron provided a standard method for storing user settings across all desktop platforms. If there isn't a ...
CodeManiak's user avatar
  • 1,933
3 votes
2 answers
666 views

Which app has the focus when a global shortcut is triggered

I use a global shortcut to popup a dialog. But I would like to fill the dialog depending on the application having the focus at the moment the shortcut is triggered. But I can not find a way to do it....
Benjamin Van Ryseghem's user avatar
13 votes
5 answers
9k views

Live reload for electron application

I want to use a combination of VScode + Gulp + Electron to build an application. A nice feature of the development workflow would be to add an live reload task to my Gulp watch task, to reload the ...
chrisber's user avatar
  • 750
0 votes
1 answer
693 views

Error: Module version mismatch. when trying to launch in electron shell

When I try to launch my app in electron shell I get the below error: I'm using node v0.12.3 I have installed electron-prebuilt Uncaught Exception: Error: Module version mismatch. Expected 43, got 14. ...
user3476766's user avatar
46 votes
5 answers
65k views

Open external file with Electron

I have a running Electron app and is working great so far. For context, I need to run/open a external file which is a Go-lang binary that will do some background tasks. Basically it will act as a ...
Javier Cadiz's user avatar
  • 12.5k
8 votes
1 answer
14k views

Node HTTP-Proxy to HTTPS server with client certificate

Our servers rely on client certificates to validate access. Right now neither Electron nor NW.JS seem to support client certificates yet, which prevents us from creating an application that can ...
kjlaw89's user avatar
  • 101

15 30 50 per page