• Rekall Incorporated@piefed.social
    link
    fedilink
    English
    arrow-up
    23
    ·
    18 days ago

    I hate Electron apps with a passion.

    They are always so heavy and inefficient. I sometimes run complex video encoding/upscaling tasks in the background that push my computer to it’s limits (for hours on end) and you can really get a feel for which applications are badly made. Electron apps always perform worse even if what they are doing is relatively simple.

    And there are always weird edge cases with OS integration with Electron apps. Sometimes it’s done well, other times not so much.

    • Specter@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      18 days ago

      Not to mention they look dogshit on GNOME. Fonts look so blue try you’re better off gauging your eyes out, it’s less painful.

  • Breezy@sopuli.xyz
    link
    fedilink
    arrow-up
    5
    ·
    18 days ago

    It’'s neat to learn about CSD. That flat frameless window with a custom title bar look is what I dislike the most about electron applications. Hopefully those become less apparent with these new updates.

    • ell1e@leminal.space
      link
      fedilink
      English
      arrow-up
      7
      ·
      18 days ago

      This is a GNOME problem, not a Wayland problem. The article says “On X11, the window manager typically supplies a window’s title bar and frame decorations. But […] on Wayland, all you get back from the compositor is a plain rectangle.” which makes it sound like this is a Wayland problem, but this isn’t true.

      • Breezy@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        18 days ago

        Ah I think I might be misunderstanding then.

        For this:

        Many popular apps, including Visual Studio Code, Obsidian, and Discord, use frameless windows with custom title bars. Prior to Electron 41, frameless windows did not support CSD at all, so they looked like featureless rectangles on Wayland.

        Am I misinterpreting that Electron on Wayland now supporting CSD for frameless windows would make it possible for developers currently using them to better mimic the look of Qt or Gtk apps (with shadows and rounded corners, etc.)?

        I’m using KDE Plasma and Electron apps sometimes have that sharp-cornered, shadowless window vs the way Qt or Gtk apps are rendered. The most noticeable difference for me is the lack of outline, rounded corners, or shadow.

        But do correct me if I’m wrong since I don’t know much about Electron development.

        • ell1e@leminal.space
          link
          fedilink
          English
          arrow-up
          5
          ·
          18 days ago

          Basically, on any sane window manager no matter if Wayland or X11, you’ll get the same frame for all apps for free.

          From all the big desktops it’s only GNOME that somehow decided server-side decorations weren’t a good idea implement, and now all Wayland apps have to hand-roll a hacky workaround. The “flat frameless window” look was Electron’s GNOME workaround. What the article is describing is a more elaborate GNOME workaround. On e.g. KDE, none of these problems existed in the first place.