Closed sukanka closed 10 months ago
We know it can't run on electron 20 and up due to security related changes in electron and chromium. This is a good thing as it makes it harder for random dev to shoot themself in the foot. But it broke legitimate use case as ours. We're currently working to work around the new limitations.
Note: This is a custom-rebuilt version with
electron25
, as electron19 has been dropped in archlinux official repo, I tried to rebuildetcher
with newerelectron
(namelyelectron
22 to 25). All builds succeded but failed to flash any image.update: with 1.18.13 I still cannot flash any image. When I select an image, it pops And I see the logs in console says
But
etcher
built withelectron19
works fine.My build script: github gist
After the password is entered, the following error occurs.
text version for copy and paste:
output from terminal
Interested in joining the Etcher team? Drop us a line at join+etcher@balena.io
Version = 1.18.8, Type = local gui.js:37 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks.
For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. (anonymous) @ gui.js:37 gui.js:37 Elevating command: /usr/lib/electron19/electron /usr/lib/balena-etcher/generated/child-writer.js gui.js:37 Error: Error invoking remote method 'disable-screensaver': No handler registered for 'disable-screensaver' at o.invoke (node:electron/js2c/renderer_init:57:526) (anonymous) @ gui.js:37 gui.js:35 0 devices, 0% at 0.00 MB/s (total 0.00 MB/s) with 0 failed devices gui.js:37 Successfully connected to IPC server: etcher-server-496098, socket root /run/user/1000/ gui.js:37 Image: /home/sukanka/Downloads/chrome/archlinux-2023.07.01-x86_64.iso gui.js:37 Devices: /dev/sdb gui.js:37 Auto blockmapping: true gui.js:37 Decompress first: true gui.js:35 Flashing 1 device, 2% at 16.70 MB/s (total 16.70 MB/s) eta in 50s with 0 failed devices gui.js:35 Flashing 1 device, 5% at 20.40 MB/s (total 20.40 MB/s) eta in 40s with 0 failed devices ... (flash succeded)