electron

(Expo with Electron) Disable native scrollbehavior

独自空忆成欢 提交于 2021-02-11 13:22:53
问题 i wanna build a desktop app with electron and expo (electron-adapter). The problem is that the body of the nested page automatically adds a scrollbar. Does anyone have a solution for this or knows how to disable this scrollbehavior? Or how to fix the header in expo? In case you need more information please let me know! Thanks for the help! 来源: https://stackoverflow.com/questions/60600943/expo-with-electron-disable-native-scrollbehavior

(Expo with Electron) Disable native scrollbehavior

十年热恋 提交于 2021-02-11 13:21:50
问题 i wanna build a desktop app with electron and expo (electron-adapter). The problem is that the body of the nested page automatically adds a scrollbar. Does anyone have a solution for this or knows how to disable this scrollbehavior? Or how to fix the header in expo? In case you need more information please let me know! Thanks for the help! 来源: https://stackoverflow.com/questions/60600943/expo-with-electron-disable-native-scrollbehavior

ElectronJS for Linux touch mobile operating systems?

萝らか妹 提交于 2021-02-11 12:28:36
问题 ElectronJS is cross-platform framework to create desktop apps for Mac, Windows and Linux. But if I make an app using responsive web design for mobile views, will the distribution for Linux work for Ubuntu Touch, Sailfish OS, Mobian, and many other Linux mobile touch operating systems? 来源: https://stackoverflow.com/questions/65889861/electronjs-for-linux-touch-mobile-operating-systems

electron-builder snap installer confusing home directory

旧时模样 提交于 2021-02-11 06:56:11
问题 This is a follow up of the previous question Defult home directory for snap installer using electron-builder, asked as requested there. I'm currently building a electron app an building the installer like .deb and .snap with electron-builder. My app uses showSaveDialog/showOpenDialog to open/save file that opens up a nautilus (in ubuntu) like file explorer. Now if the app is installed using the .snap installer, the Home tab in the explorer pop-up points to the /home/user/snap/<app>/<revision>

Download zip with axios and unzip with adm-zip in memory (electron app)

安稳与你 提交于 2021-02-10 23:28:00
问题 I need to download a file with axios and unzip it in memory in an electron app. I read in some SO threads (e.g.), that adm-zip supports byte buffer constructor, but I can not see this in the docs. When I extract the content, it behaves like the array is empty, but it is not. It just does create a file and does not throw any errors I do not want to use request , as the api is marked deprecated. My code is this: const axios = require("axios"); const AdmZip = require('adm-zip'); const url =

How are webdriver and chromedriver options accessed in Spectron's new Application()?

冷暖自知 提交于 2021-02-10 18:01:51
问题 When I start a new Spectron application (for each test suite) I would like to fix the size of the app (for consistency across all machines and reloads). Commands like setBounds and maximise do change dimensions, but they only do so after the app has started (which means that some components have already assumed certain dimensions, which then changes test results). In the Spectron docs various launch options are available. I've tired to use webdriver and chromedriver options but they don't

How to extend native window.Notification to handle click events (TypeScript 4.1.2)

最后都变了- 提交于 2021-02-10 16:20:58
问题 I want to extend native window.Notification to handle click events in an Electron app (renderer process). I had this working on TypeScript 2 : const nativeNotification = window.Notification; const ProxyNotification = (title: any, options: any) => { const mirrorNotification = new nativeNotification(title, options); mirrorNotification.onclick = (event) => { console.log("NOTIFICATION CLICKED!") }; }; ProxyNotification.permission = nativeNotification.permission; ProxyNotification

Electron crashes when requiring sqlite3 native module in forked process

六月ゝ 毕业季﹏ 提交于 2021-02-10 04:10:39
问题 I'm trying to use sqlite3 module in a child process with electron, but I get error of undefined symbol. Also, the error happens only when I run the program from electron's node.js, but when I run the program from usual node.js everything works fine. I think the problem may be related to 'nativeness' of sqlite3 module, and I tried electron-rebuild , npm --build-from-source , they didn't help. main.js: const { fork } = require('child_process'); fork('fork'); fork.js: const sqlite3 = require(

Electron crashes when requiring sqlite3 native module in forked process

感情迁移 提交于 2021-02-10 03:58:39
问题 I'm trying to use sqlite3 module in a child process with electron, but I get error of undefined symbol. Also, the error happens only when I run the program from electron's node.js, but when I run the program from usual node.js everything works fine. I think the problem may be related to 'nativeness' of sqlite3 module, and I tried electron-rebuild , npm --build-from-source , they didn't help. main.js: const { fork } = require('child_process'); fork('fork'); fork.js: const sqlite3 = require(

Unable to build with electron-packager within electron-forge

喜你入骨 提交于 2021-02-08 20:38:22
问题 I have created a default project with electron-forge. When I try to package my project with the command electron-forge , the process exits with the following error. What am I doing wrong? I followed the instructions to a tee at electron-forge. $ electron-forge package ✔ Checking your system ✔ Preparing to Package Application for arch: x64 ✔ Compiling Application ✔ Preparing native dependencies ⠦ Packaging Application An unhandled rejection has occurred inside Forge: Command failed: npm prune