I often see people talking about the fact that they like a certain open-source application, but ‘it’s a shame it’s on Electron’; what does this mean? Is it a privacy thing or a resource thing?

  • Echedenyan@lemmy.ml
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    edit-2
    3 years ago

    Electron is a framework for desktop development based on Chromium.

    It has a big part of Chromium as part of its code but with a wrapper layer to act as a framework.

    With it, you can make desktop apps with PWA (Progressive Web Apps).

    They like some of it because you can get the beauty of CSS and JS effects in a desktop app, but for every of these apps you end running an independent instance of Chromium.

    It doesn’t use system browser engine or one from the installed browsers. Every app you install using it is exactly the same as installing Chrome or Chromium in different folders at your PC and running them at the same time.

    This is why they blame it too.

  • MrGamingHimself@lemmy.ml
    link
    fedilink
    arrow-up
    23
    ·
    3 years ago

    Electron apps is essentially running web apps wrapped as a desktop version. Most of them run like garbage and are always inferior to one made specifically for desktops. The only one I’ve used that runs sensibly is Discord.

    As for why people use it, it’s convenient for developers as most of them are familiar with web development and can essentially copy-paste their web application without having to change much.

    • xarvos@lemmy.ml
      link
      fedilink
      arrow-up
      11
      ·
      3 years ago

      Electron apps is essentially running web apps wrapped as a desktop version.

      worse even: it includes different copies of chromium in each app

    • Nathan John Cooper@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      So, I assume there’s not an Electron alternative that is able to port internet desktop applications without any privacy or resource issues?

      • MrGamingHimself@lemmy.ml
        link
        fedilink
        arrow-up
        11
        arrow-down
        2
        ·
        3 years ago

        There isn’t an alternative, Electron actually does its job well for what it is. It’s basically a slimmed down browser that’s customizable and runs on all systems, it’s just that it takes a ton of effort to optimize it, and for some reason most people using it aren’t very experienced.

  • Voxl@lemmy.ml
    link
    fedilink
    arrow-up
    21
    ·
    3 years ago

    Here are some flaws with Electron:

    • High RAM and CPU consumption since it’s based on Chromium
    • Electron apps take too much space as they’re bundled with NodeJS and Chromium runtine
    • Electron apps tend to be slow
    • Terrible sucurity
    • jokeyrhyme@lemmy.ml
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      edit-2
      3 years ago

      An Electron app has full access to your filesystem and to other system resources, the same as any other desktop app

      Is there a specific reason or example for why we say it has terrible security here?

      Chromium has an incredibly advanced and optimised graphics pipeline and the code that is running in the “web” part of an Electron app benefits from Chromium’s sandbox

  • jokeyrhyme@lemmy.ml
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    3 years ago

    People complain about Electron, but without it there would probably be even fewer cross-platform apps today

    Some aspects of it might be less than perfect, but let’s not allow perfect to be the enemy of good

    Electron doesn’t automatically mean that an app is bad, just like Unity doesn’t automatically mean that a game is good

    • ☆ Yσɠƚԋσʂ ☆@lemmy.ml
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      3 years ago

      Completely agree, thanks to Electron we now have many mainstream apps working on Linux and that just wouldn’t have happened otherwise. Whatever technological problems Electron has can be addressed down the road, and are outweighed by the value of lowering the barrier of creating cross-platform applications.

    • Helix 🧬@feddit.de
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      Or you could just use the offline functionality built into browsers nowadays instead of Electron.