News for hackers. Stuff that matters.
Re:Podman Desktop 1.0 by intelVISA on Tuesday May 23, 2023 @12:33PM (#36046714)
To quote the great pjmlp: Let me guess, Podman desktop is an Electron app.
Re:Podman Desktop 1.0 by leetharris on Tuesday May 23, 2023 @12:47PM (#36046978)
Yes. It is by far the easiest way to make a nice looking cross platform app. If you can't handle the extra RAM you are always welcome to use the CLI
Re:Podman Desktop 1.0 by intelVISA on Tuesday May 23, 2023 @12:50PM (#36047021)
Only thing I can't handle is how Red Hat, with its bllions, can't afford a few extra dollars for user-respecting, secure native GUIs.
Re:Podman Desktop 1.0 by ragnese on Tuesday May 23, 2023 @01:33PM (#36047772)
I hate Electron apps, too, but I've not heard people complain about security before. What's the security problem with Electron apps?

I understand that you're basically running a Node.js instance for each app, but why is that more insecure than running, say, a GTK app? Since GTK and Node.js are written in C and C++, respectively, my gut instinct would be to assume they're equally likely to have security bugs.

Re:Podman Desktop 1.0 by wiseowise on Tuesday May 23, 2023 @05:25PM (#36051046)
Re:Podman Desktop 1.0 by cjbprime on Thursday May 25, 2023 @03:33AM (#36067990)
The difference is that no-one would load remote-user-supplied C++ code at runtime and expect it not to result in vulnerability, but people remotely source JS, or allow remote-user-supplied HTML to interact with their JS, and the stakes are higher than they would be in a web browser, because Node (and therefore Electron) has APIs to e.g. read and write to your filesystem and browsers have sandboxes to block that.

(Electron offers sandboxing too, but you're likely to actually want to use the OS features so it's not as simple as always disallowing the access.)

Re:Podman Desktop 1.0 by stonogo on Tuesday May 23, 2023 @01:41PM (#36047893)
Why does a linux-only tool need a cross-platform app?
Re:Podman Desktop 1.0 by ccmcarey on Tuesday May 23, 2023 @01:48PM (#36048039)
It's not linux only? Podman desktop runs on Windows (I'm using it right now) and Mac
Re:Podman Desktop 1.0 by klabb3 on Tuesday May 23, 2023 @02:22PM (#36048610)
Even if it were Linux only, it’s not like GUI and application bundling is standardized across distros.
Re:Podman Desktop 1.0 by viraptor on Tuesday May 23, 2023 @06:17PM (#36051540)
It effectively is if you're ready to ship your dependencies. If you're happy to depend on major versions that come with the system, qt isn't bad either.
Re:Podman Desktop 1.0 by pjmlp on Tuesday May 23, 2023 @01:48PM (#36048026)
https://www.qt.io/product/ui-design-tools

Depends on how much one actually bothers to look around.

Re:Podman Desktop 1.0 by wiseowise on Tuesday May 23, 2023 @05:24PM (#36051028)
Buying specialized tool, hiring C++ UI devs just to create your average HTML page and make a couple of snob tech-bros happy, great investment.
Re:Podman Desktop 1.0 by pjmlp on Wednesday May 24, 2023 @01:16AM (#36054350)
When one goes free, it gets the quality they deserve.

I guess anything goes helping Google to spread Chrome all over the place, it gives them a warm feeling.

Re:Podman Desktop 1.0 by dustypotato on Wednesday May 24, 2023 @03:53AM (#36055233)
Chromium is open source
Re:Podman Desktop 1.0 by pjmlp on Wednesday May 24, 2023 @06:04AM (#36055913)
And?
Re:Podman Desktop 1.0 by wiseowise on Wednesday May 24, 2023 @07:10AM (#36056367)
Not sure what you meant by your first sentence, but if I understand correctly - you’re just proving my point.
Re:Podman Desktop 1.0 by bjconlan on Wednesday May 24, 2023 @01:37AM (#36054473)
s/C++ UI/React/

The statement still holds. This one is just the status quo

Re:Podman Desktop 1.0 by wiseowise on Wednesday May 24, 2023 @07:09AM (#36056359)
Tooling for React is miles ahead of anything C++ UI related while being “free” and free.
Re:Podman Desktop 1.0 by robertoandred on Tuesday May 23, 2023 @01:58PM (#36048212)
I wouldn't call Electron apps nice looking. They always stand out like a sore thumb, being slow and non-native.
Re:Podman Desktop 1.0 by paulddraper on Tuesday May 23, 2023 @01:41PM (#36047907)
I know we don't like it, but it is objectively the most cost-efficient way to make a cross-platform desktop app.

Nothing else even comes close, unfortunately.

Maybe someday.

Re:Podman Desktop 1.0 by pjmlp on Tuesday May 23, 2023 @01:48PM (#36048046)
Sure if one only knows Web.

The days of multi-stack-skill devs are gone.

Re:Podman Desktop 1.0 by klabb3 on Tuesday May 23, 2023 @02:32PM (#36048752)
You mean developers who not only know 4-5 different language-runtime-GUI stacks well, but also casually maintains 4-5 different versions of the same app? I don’t think they’re “gone”, I think they spend their time in better ways.
Re:Podman Desktop 1.0 by mping on Tuesday May 23, 2023 @02:55PM (#36049064)
To put it in another way, business doesn't care what language it is written as long as you ship it fast and it passes QA.

Electron gets the job done, and you can tap a huge pool of devs.

Re:Podman Desktop 1.0 by pjmlp on Wednesday May 24, 2023 @01:15AM (#36054345)
Until liability finally becomes a thing in computing like in other industries, then lets see how much everyone cares.

It is slowly happening, lawsuits against failed consulting projects, returns in digital stores, fixes free of charges due to warranties and security regulations changes,....

Re:Podman Desktop 1.0 by mike_hearn on Tuesday May 23, 2023 @05:29PM (#36051092)
Objectively by what measure?

Bear in mind that there are alternatives: JavaFX and Compose for Desktop are the ones I know best. They can be used from high level and popular languages. JavaFX is particularly good for desktop apps and can be compiled down to purely native code that starts as fast as an app written in C++ (likewise for Compose but the experiments with that are newer).

There are some downsides: fewer people know them than with HTML. There are a few tweaks like window styles on macOS it could use to be more modern. On the other hand, it's easy to learn and you benefit from a proper reactively bindable widget library, like table and tree views if you need those. For developer tools such widgets can be useful.

There's a modern theme for JavaFX here:

https://github.com/mkpaz/atlantafx

CfD uses Material Design of course, but you can customize it.

Having written desktop apps of varying complexity in all these frameworks, I can't say Electron is clearly superior. It is in some cases (e.g. if I was wanting to write a video conferencing app then it makes sense to re-use Google's investment into Hangouts/Meet for that), but it's also worse in some cases. For instance the multi-process model constantly gets in the way, but you can't disable it as otherwise XSS turns into RCE.

Re:Podman Desktop 1.0 by viraptor on Tuesday May 23, 2023 @06:14PM (#36051512)
I'll counter with Avalonia https://avaloniaui.net/

It's likely easier if you assume the same starting skill level since dotnet build system is way simpler to deal with.

Re:Podman Desktop 1.0 by pjmlp on Tuesday May 23, 2023 @01:46PM (#36047997)
Thanks for the reference.

"lightweight and efficient" is definitely not what comes to mind when talking about Electron.