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.
12,804
questions
0
votes
0answers
4 views
How to package electron app as a window service
I have successfully packaged my electron app appx. I want to run this app as a service. So it will always run and auto start on boot.
Is it possible to do this? If yes, how?
Can run a powershell ...
0
votes
1answer
13 views
Remove event listener from `preload.js` in Electron created by React component
I am using Electron 13 with React 17. I have set nodeIntegration to false and contextIsolation to true, therefore I am using a preload.js file to expose an API to communicate between the main and ...
1
vote
1answer
11 views
Can't use library on NW.js (and so Electron) - was compiled against a different Node.js version using
My problem is that I want to import this library on a desktop app based on NW.js (the template is here).
import Cap from 'cap-rbfork' //set on a vue.js view
When I start the app, it doesn't load the ...
0
votes
0answers
9 views
Package only certain directories with asar in an Electron application
I have an Electron application where I am trying to use asar to package the node_modules and sources directories excluding the other directories.
I noticed when building the application with asar ...
0
votes
1answer
13 views
Expo Electron OAuth2 Login
I'm trying to built an app using Expo for multiple different Platforms, Desktop included - with Electron.
Now I'm having issues continuing a logging process till the end.
I'm aware Electron uses Expo ...
0
votes
1answer
25 views
electron js how to call a function rendered in index
I'm going crazy to be able to call a function that I have rendered in an index and then execute that function with globalShortcut, I was researching and found that IPC could perform, but all the ...
1
vote
0answers
14 views
How to compare 2 NativeImage instances in Electron
I'm reading images from the clipboard in a setInterval loop and I want to check if the user has clicked a new screenshot since the last run.
Currently I'm using the toPNG() method and comparing the ...
-1
votes
1answer
22 views
How can i print txt files or string with Electron?
It's supposed to send print jobs to zebra printers. I need a way to see printers and be able to tell which printer to use. Sometimes one pc will be connected 2.
Best case is to print txt files
Couldn'...
1
vote
0answers
15 views
Electron screen capture not getting the right content with fullscreen window
I'm working in a project for Games Overlay using Electron with desktopCapturer to capture some screenshots from a fullscreen window outside electron. I'm using the default aproach you can find in the ...
2
votes
0answers
45 views
Why is HTML validation not working in Electron?
I've searched for this for a while. I have an Electron (version 13.2.2, Node v14.17.3, Chrome 92) application that I want to add some validations to, in one of the simple forms I have.
The code below ...
0
votes
0answers
15 views
How to install node_modules on the time of electron app package?
you can see the I packed my electron app with electron-builder command.
But after installing that app its shows that node module not installed. how can I do that.
0
votes
1answer
16 views
How to unit test(jest) the content of on ready event for an electron app?
I have this piece of code to be tested:
electronApp.on('ready', async () => {
const filter = {
urls: ['*://*.company.com/*'],
};
try {
session.defaultSession.webRequest....
1
vote
1answer
16 views
Firebase Auth State Persistence ELECTRON loadFILE vs loadURL
I have a functioning electron app and I'd like to load a url from another site (created by me for the app). The trouble I'm having is persisting the login when I loadURL from the main process in ...
0
votes
1answer
27 views
How to add components to vue on click
So I have a page with a button. When this button is clicked I would like text to appear, and everytime the button is clicked I would like the text to appear like this:
This is my code:
<v-row>
...
0
votes
0answers
16 views
read ip from json file electron react
I need to read from a json file saved in C:/ the ip address of the API server inside an electron-react app build for prod. This for don't build again the project for production when the ip changes.
Im ...
0
votes
0answers
11 views
Node-fetch not working with Electron 11, error resp.body.pipe is not a function
So I am basically trying to use node-fetch to download a zip from a URL, but I get this error: TypeError: res.body.pipe is not a function
Since I have updated my Electron app version from "...
-3
votes
0answers
18 views
Electron - Gif file as a loading screen
I'm a beginner coder, and I was wondering if it was possible to make a gif as a loading screen with electron. Thank You!
0
votes
1answer
23 views
mainWindow.webContents.send does not work
I am trying to send response from python axios.post to ipcRenderer but mainWindow.webContents does not send the response to renderer and sometime the response from axios is delayed
please help me with ...
0
votes
0answers
29 views
How to serve TileServer-GL map tiles to Openlayers without throwing CORB error
I need to run an OpenLayers instance offline. I am trying to load map image tiles which I have downloaded from here. I am running TilerServer-GL docker image as specified in the documentation. I have ...
4
votes
1answer
66 views
Windows Folder Shortcut of an Electron App - get the path of that folder?
TL;DR
I want to open my Electron App through a Windows Folder Shortcut (right-click on any folder and click Run In My Electron App), and get the folder path that initiated the app.
I managed to ...
2
votes
0answers
39 views
'Can not find module: @babel/register' when 'yarn'
I'm having trouble installing yarn. This is because of the error 'Can not find module: @babel/register'.
To solve this problem, I tried $npm cache verify, $npm cache clean -force and $yarn cache clean....
0
votes
0answers
8 views
Express server not working in production Electron-vue project
Calling server from the main process (background.ts)
let httpServer: any;
const s = initServer();
httpServer = s.server;
This is the error I get when I try clicking login in production settings
POST ...
0
votes
0answers
23 views
Syntax Error: import {app, protocol, BrowserWindow} from 'electron'
I want build Vue Electron project. I tried to output for three platforms but they all have the same error.
Can you help on the subject?
enter image description here
-1
votes
0answers
15 views
What are good technologies for creating a game launcher? [closed]
In my current position I have been tasked with creating a launcher for the game that we are working on.
However, the launcher should ideally be used for all of the games that the company will create, ...
0
votes
1answer
16 views
How to focus named window when I reopen it in electron.js?
I have a list. Click one item and then pop-up window which is named open. It's focused when it first opens, but it's out of focus the second time.
enter image description here
when I click a button, ...
0
votes
0answers
25 views
javascript Mqtt receiving image and change src attribute
i have this simple HTML code:
<!DOCTYPE html>
<html>
<head>
<script src="prog_page3.js" defer></script>
<script src="https://cdnjs....
0
votes
0answers
21 views
How to get dist of NestJS production without importing node_modules?
Firstly, I am using angular-electron app, and I implement NestJS to build REST APIs.
I implement all files correctly, and the app runs in dev mode with success
In production mode , I did import ...
1
vote
1answer
15 views
How to Deploy Electron React Boilerplate App?
I made a React Electron application and I have difficulty deploying this Electron React Boilerplate App (make a .exe file) I use this Boilerplate: https://github.com/Jerga99/electron-react-...
-1
votes
0answers
14 views
What Internet And 0/1 bits Really Are? [closed]
I was reading about half and full duplex and how full duplex fixes the problem of collisions but few questions rose up:
Computers understand 0 and 1 where 0 is there is no electricity and 1 there is ...
0
votes
0answers
22 views
How do I convert my HTML5 game made with phaser into a exe file with electron?
Good Morning Devs
I just want to know how to convert my html5 game into an EXE file with Electron
Directory : Directory Image
I installed Phaser and Electron with npm.
I am using the phaser.min.js ...
0
votes
0answers
28 views
Electron app: TypeError fs.existsSync is not a function
I am building a desktop application in Electron using React and SQLite3. My configuration is as follows:
node: v14.17.4
electron: 13.2.1
react: 17.0.2
sqlite3: ^5.0.2
I am trying to enable the ...
0
votes
0answers
19 views
Electron.NET CLI is publishing to directory different from specified in electron.manifest.json file and not creating executable file and setup exe
I have a .NET 5.0 Web Application and I'm using the Electron.NET. Before today, when I use Electron.NET CLI to publish my app with electronize build /target win command, Electron.NET CLI was creating ...
0
votes
0answers
7 views
Make electron app window appear in a specific part of the desktop screen
I was wondering how could one make an electron desktop app appear for instance on the bottom right part of the desktop screen upon initation? Thanks
0
votes
0answers
13 views
Electron example didn't work with “exited with signal SIGSEGV”
i have a problem it didn't work Electron example app with
/home/jms08/jms08/Electroning/node_modules/electron/dist/electron exited with signal SIGSEGV
I cloned the Electron-quickstart-example and
i ...
0
votes
0answers
13 views
Need to create node native module using an electron app
I am creating a simple electron app with native modules included. I have included some static libraries sourced from c++ application. Here is my binding.gyp file and the hello.cc file created as ...
0
votes
2answers
36 views
How would I close my application on button click in electron?
I am making a frameless application using electron and vuejs and I would like to know how I would go abouts closing the app once the exit button is clicked.
I have tried using this code in home.vue ...
0
votes
0answers
22 views
how can i make svelte-kit ,electron and mongodb work in production mode.?
I'm trying to build a desktop app using svelte-kit and electron and installing mongodb locally.
I was able to put everything together successfully and everything work just fine (in development mode), ...
3
votes
1answer
96 views
“GPU process isn't usable. Goodbye.”
I'm experimenting with building a Windows and Mac OS app using Electron and have hit a snag.
In short, if I try to run the application directly with Electron on Mac OS Big Sur (as opposed to building ...
0
votes
1answer
27 views
Using electron-store with react
so i've been messing around with electron and react to create an application, and i've been searching for a way to store data. Not like a lot of data, just a few things that i need.
i've found that ...
0
votes
0answers
24 views
Python-shell not running into addEventListener (ElectronJs)
i'm new in javascript development and i'm coding a steganography app with Electron js & node js, the backend is coded in python, that's why i need to call my script.
Actually, my problem is that i ...
0
votes
1answer
28 views
Persistent file storage across electon app updates with electron-builder electron-updater
When I update an Electron app using the electron-builder autoUpdater, all the file storage I defined is overwritten. What settings do I need to make these files persist?
Here is an MCVE example (for ...
0
votes
2answers
22 views
Can I cross-build electron-forge apps for all platforms?
I'm using electron-forge to build apps for Linux, macOS and Windows. Currently, I can build the macOS distributable natively from macOS, but I need two VMs to build for Linux and Windows.
From each ...
-1
votes
1answer
22 views
Executable Electron App cannot find module
I have an electron app that works when running locally, but when creating an executable it cannot find a module (JSON file) and I'm not sure why.
The error I get is "Uncaught Exception" ...
0
votes
1answer
22 views
Can't import modules in node.js [duplicate]
I am trying to build an electron Desctop app but when I wanted to use the Filesystem (fs) of nodejs I got the error "Uncaught ReferenceError: require is not defined". When I searched for the ...
1
vote
1answer
33 views
Electron : window['pdfjs-dist/build/pdf.hjs'] undefined
17/08/2021, no issues.
18/08/2021: For some reason overnight, there has been 0 changes in the code itself,
const pdfjsLib = window['pdfjs-dist/build/pdf']
pdfjsLib.GlobalWorkerOptions.workerSrc = '//...
0
votes
0answers
7 views
Electron-Typescript: how to run parts of the code in command line?
A typical typescript library that is built with 'tsc' will have a './build' folder that contains generated JS files that can be executed with 'node' command.
However, Electron app that gets built with ...
1
vote
0answers
11 views
Error: ditto: Couldn't read PKZip signature
My electron app is receiving a update.zip from GitHub Releases to install to itself as an update but everytime it tries to install the update to itself I receive the error
Error: ditto: Couldn't read ...
0
votes
0answers
18 views
Status Code: 500 Internal Server Error - Browser script access not permitted
I am using electron with webpack and electron-builder. I am having issues with fetching from localhost in the production build only; the fetch returns a 500 error with this response:
Browser script ...
0
votes
0answers
17 views
Read Data from Ms Access Database file (.mdb) with JavaScript [closed]
I plan to start a project soon but i'm not sure what I should use.
Since I am comfortable with Vue Js and Quasar Js, React Js, a little bit of Express Js, and Laravel and my app is required to read ...
0
votes
0answers
12 views
Building Atom text editor on Windows fails
I assume we can build Atom on Windows
I followed "Hacking on Atom Core" https://flight-manual.atom.io/hacking-atom/sections/hacking-on-atom-core/#platform-windows
but when I tried to build ...