electron Questions
3
Solved
I defined contextBridge ( https://www.electronjs.org/docs/all#contextbridge )
in preload.js as follows:
const {
contextBridge,
ipcRenderer
} = require("electron")
contextBridge.exposeI...
Richardricharda asked 11/2, 2021 at 10:32
1
I am trying to transition an electron application built with create-react-app to ViteJS. So far, I've managed to get a lot of things fixed, but I'am having an issue with one of our dependencies.
My...
3
Angular CLI: 11.0.1
Node: 14.8.0
OS: darwin x64
Angular: 11.0.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-brows...
2
I'm trying to disable Cmd+R or F5 for refreshing my electron app like so:
globalShortcut.register('CommandOrControl+R', () => false);
globalShortcut.register('F5', () => false);
But, unf...
Periodate asked 5/7, 2018 at 9:17
3
Solved
I am creating an electron app and want to play local audio file(from the computer not my project dir) without using the input type file.
I have tried the traditional way of create a new Audio ins...
Lianna asked 16/8, 2019 at 2:6
3
I find that the MyApp.exe file generated using electron-builder is nearly about 500M. I am not sure what I did because previously, just for ia32 or x64, it would be around 196M. I also looked at th...
Psychosis asked 18/12, 2017 at 10:30
3
Solved
I have a minimal electron app and I am trying to build it (it runs fine). My package.json is
"main": "main.js",
"scripts": {
"start": "electron -r babel-register .",
"package": "build --dir",
...
Panhandle asked 20/2, 2018 at 17:37
4
Solved
I do not know if this is possible but I might as well give it a chance and ask.
I'm doing an Electron app and I'd like to know if it is possible to have no more than a single instance at a time.
I...
Sind asked 10/3, 2016 at 12:11
4
I am trying to use bluetooth-serial-port native module in electron (atom-shell). I did the following.
Installed electron-prebuilt.
npm install electron-prebuilt -g
npm install electron-prebuilt...
15
Solved
How do you set the app icon for your Electron app?
I am trying BrowserWindow({icon:'path/to/image.png'}); but it does not work.
Do I need to pack the app to see the effect?
5
Solved
I'm banging my head against the wall on this one. I'm trying to override the name of a demo electron app to give it a custom name instead of just Electron. I created a module for doing this:
const...
Fetiparous asked 9/1, 2017 at 15:16
5
I can't find reference about this anywhere in their website/docs. I need to change this to another port, currently it's stuck in 3000.
Here's how I create an electron project with electron-forge
...
Shackle asked 2/3, 2020 at 8:43
0
I am creating an desktop application using electron for the Linux platform. I am able to get screenshot of the entire screen or the each screen. Following is the code to that captures screenshot an...
Gasket asked 13/7, 2023 at 13:6
3
I'm building a UI-automator with Puppeteer and I'm shipping it as a Electron-packaged app. It works nice-and-smooth except for this issue:
Chromium is not downloaded exception is thrown when the a...
6
Solved
I am new to electronjs. I want to convert an angular app to desktop. I could achieve it successfully but the problem is that the app icon is set to default electron and not the icon I provided as f...
Exceptional asked 12/10, 2019 at 6:40
11
Solved
Good morning,
I have created a program in Vue JS, this connects with an API that I have created in a main.js file to execute system commands.
The problem I have is that when compiling for productio...
Genome asked 22/6, 2021 at 14:25
13
I am trying to use webpack + react + electron, and when I type in the CLI "electron ." it gives me this error:
I deleted node_modules and re-installed all the modules over and over like about 6 ...
Longlived asked 6/3, 2017 at 21:44
3
Solved
The Node.js environment in Windows can be set before the server is started, like this:
set NODE_ENV=production
That NODE_ENV parameter can be used in Node.js or electron by process.env.NODE_ENV.
...
Gernhard asked 16/1, 2019 at 9:50
5
When I run my Electron app through Visual Studio Code, the main process loads, which in turn launches the index.html page. In the index.js script I redirect the browser window to a local html file ...
Educable asked 8/1, 2018 at 9:22
2
For example the variable mergedArray below.
My issue is that variables are often impossible to inspect even when defined within the current function.
I found other questions that ask something simi...
Artis asked 3/8, 2020 at 21:54
2
I am trying to use electron with latest Vite 2/Vue 3. I have setup two versions of electron's main file so I can test and work with both dev server and the build:
dev version loading the localhost...
Corbie asked 1/11, 2021 at 13:14
4
Solved
I'm working on a simple nodejs electron (formerly known as atom shell) project.
I'm writing it using angular 2, using the project the same project setup as they recommend in the documentation for t...
Jillion asked 11/4, 2016 at 11:2
3
Is it possible to get a unique PC/Device ID via Electron so I can save PC/Device ID to MySQL Server on the cloud? If this is not possible then what other option I have?
The purpose of this to limi...
Lanoralanose asked 3/8, 2016 at 20:32
3
Solved
I have built an application of stack electron and reactjs. I am trying to access the camera and microphone from the application. But the app does not ask for permission when requested and also it d...
Zooid asked 27/4, 2022 at 6:9
1
Solved
I need to put a .env file into a packed app while building, then attach variables from the .env to process.env. I put the .env in the same directory as the package.json and it works when I start el...
Obcordate asked 17/6, 2022 at 9:7
© 2022 - 2024 — McMap. All rights reserved.