Questions tagged [electron-vue]

The aim of electron-vue is to remove the need of manually setting up electron apps using vue. electron-vue takes advantage of vue-cli for scaffolding, webpack with vue-loader, electron-packager or electron-builder, and some of the most used plugins like vue-router, vuex, and so much more.

84 questions
2
votes
1 answer

Electron: Setting the 'fullscreen' flag to false not disabling the fullscreen button on macOS

When creating a new BrowserWindow instance in Electron several flags can be set, one of which being fullscreen. The description of the flag is the following: Whether the window should show in fullscreen. When explicitly set to false the fullscreen…
Lachlan
  • 1,245
  • 5
  • 18
  • 34
2
votes
1 answer

How to natively show the Save Changes Dialog when closing an Electron app?

Im creating an Electron app. I save the user progress in a file. I want the app to show the usual 'Save changes before closing' when the user has not saved and tries to close the App. I could show a custom dialog, however, I would want to do it the…
David Cruz
  • 2,995
  • 3
  • 28
  • 41
1
vote
0 answers

If there any methods to disabled Window key in electron js?

I've been working on developing an Online Examination System where it use to prevent students from cheating during the exam. I want to disable window key and other combination key like win + PrtSc..etc, but it didn't work.I have no ideas what to…
1
vote
1 answer

PlayWright Electron: Is it possible to get BrowserWindow from Page?

I'm trying to find the electron window object that contains the loaded page. I want to take the following action: let window1 : BrowserWindow | null = null let window2 : BrowserWindow | null = null electronApp.on("window", async (page) => { …
Nikhil
  • 181
  • 1
  • 15
1
vote
0 answers

Vue.js-Electron application with an Apollo client does not receive cookies from a remote API server

I try to build an application with a GraphQL backend (based on Node.js and graphql-yoga). The server is hosted on a Linux machine with nginx as a reverse proxy. The proxy configuration is listed below. server { listen 443 ssl; listen…
MichaelT
  • 71
  • 1
  • 1
  • 7
1
vote
2 answers

Sending messages through Electron IPCmain channel to vue instance only works one way

I'm tyring to send messages back and forth between the main electron process and the vue instance. What i have so far is Preload.js: import { contextBridge, ipcRenderer } from 'electron' window.addEventListener('DOMContentLoaded', () => { const…
Oirampok
  • 569
  • 5
  • 23
1
vote
2 answers

Quit Electron from VueJs

I am using vue-cli-electron-builder. So how I can quit the application from a button in vue. Thanks.
1
vote
0 answers

electronjs camera not found on raspiberry pi

So I created an electron app that will open a camera ang scan a QR code, this is the plugin that I'm using https://github.com/schmich/instascan. The html files was done using Vue and tested the output and I can see the camera is working but when…
Juliver Galleto
  • 8,831
  • 27
  • 86
  • 164
1
vote
1 answer

My window in Electron doesn't appear no matter what I do, there is something wrong with my code?

Firstly I'm using Vuejs and Electron, the package.json will be in the end of this post. I'm trying to use this listener to show my window as the Electron's documentation recommend. win.once("ready-to-show", () => win.show()); But it seems that this…
1
vote
1 answer

How to set application icon in eletron-vue js

I am working with electron-vue js for building cross platform desktop app. I want to set custom icon when i make build file and want to add product name on app. But when i set custom icon, it work perfect in locally but when make it build then not…
1
vote
1 answer

Preload not working/compiled correctly in production (Electron-vue SimulatedGREG)

I have a preload script that is working well in development. I've seen here that I either need to use a static file or webpack. I went with the static approach because my knowledge is zero with the webpack one. Currently, I'm using a webview, and…
Jaeger
  • 1,646
  • 8
  • 27
  • 59
1
vote
1 answer

Electron NativeTheme: Cannot set property 'themeSource' of undefined

currently I am trying to setup a system/light/dark mode switcher in my electron app. For the electron app, I have used the electron-vue library and upgraded then the electron version to 7.3.2. So now I thought, I can use the new API nativeTheme from…
Julian Schmuckli
  • 3,681
  • 11
  • 37
  • 64
1
vote
1 answer

__dirname is not defined importing electron remote

I have a problem. I want to set up the minimize, maximize and close buttons on a frameless window but I can't due to this problem importing the electron remote. Thanks. import { remote } from "electron"; methods... closeWindow() { var window =…
1
vote
1 answer

How to use multi scss in Electron-Vue Project

I want to use multi scss Files in Electron-Vue and i am able to use single scss file in Electron-vue with the help of this solution By adding this in webpack.renderer.js . Note: Using Bootstrap Thanks in advance.
welcomegkm
  • 354
  • 1
  • 13
1
vote
1 answer

electron-vue with webview cannot bypass/access Cloudflare-powered websites

I have installed the template from Electron-vue and I'm experiencing an issue with specific websites. These websites work on Chrome and Edge, yet, fail to completely load in webview. The following example is the whole setup of the view. The console…
Jaeger
  • 1,646
  • 8
  • 27
  • 59