News for hackers. Stuff that matters.
Re:De-Bloated Windows 11 Build Runs on 2GB of RAM by Ar-Curunir on Saturday February 04, 2023 @12:49PM (#34656400)
Because integration into the desktop is better as an Electron app. Eg sound and video calls, keyboard shortcuts, not having to worry about finding your Discord/Slack/whatever tab
Re:De-Bloated Windows 11 Build Runs on 2GB of RAM by Dalewyn on Saturday February 04, 2023 @07:29PM (#34660126)
I would't say Electron is better desktop integration.

Discord for example is literally just a chrome-less Chrome; the zoom in/out hotkeys in Chrome still work in it.

This is also not mentioning how no Electron program ever visually adheres to the desktop environment it's running in.

Re:De-Bloated Windows 11 Build Runs on 2GB of RAM by oefrha on Saturday February 04, 2023 @11:34PM (#34661903)
Electron apps can use desktop capabilities. Web apps are at the mercy of the few desktop-bridging APIs that browsers inconsistently expose. They’re not talking about UI/UX “integration”.

Discord for instance has this “currently playing game X” feature. I have zero interest in broadcasting what I’m doing at the moment to the world, but many do and have this feature enabled. Good luck implementing that in a browser-confined web app.

Re:De-Bloated Windows 11 Build Runs on 2GB of RAM by leonidasv on Saturday February 04, 2023 @11:50PM (#34662004)
Electron can call native OS APIs the browser can't.

An example: https://stackoverflow.com/a/39569062

Re:De-Bloated Windows 11 Build Runs on 2GB of RAM by smileybarry on Sunday February 05, 2023 @08:50AM (#34664871)
> Discord for example is literally just a chrome-less Chrome; the zoom in/out hotkeys in Chrome still work in it.

No, it also includes:

* Voice (and text chat) overlay for games (DLL)

* Game integration via lobby & rich presence APIs

* Krisp noise cancellation (requires a DLL as well)

* (Better) screenshare (Chrome has an API for window sharing now but Discord's is a bit more robust with several backends in case one fails)

* System-wide keybinds

* Scripting support via gaming accessory apps (Logitech G HUB, HyperX, etc.)

It also (anecdotally) works faster than the web client, in my experience.

Just because the zoom controls work (which is an accessibility feature) doesn't mean it's a barebones Chrome wrapper.