News for hackers. Stuff that matters.
Re:Proton Mail gets a desktop app for encrypted email and ca... by jorvi on Thursday December 14, 2023 @09:12AM (#38641509)
That ship has sailed. If I look at my Dock right now, from left to right I'm running:

- Nautilus

- Brave (Chromium)

- Gnome-terminal

- VSCode (Electron)

- Telegram Desktop (̶E̶l̶e̶c̶t̶r̶o̶n̶ QT)[1]

- WhatsApp (web wrapper in Electron)[1]

- Discord (Electron)

- Spotify (Chromium Embedded Framework)

- Betterbird (Gecko, might as well be Electron)

- TickTick (Electron)

- Steam (Chromium Embedded Framework)

In a way it is very interesting to me, Chromium has pretty much become a "kernel" of sorts that all web technologies run atop. And I don't really buy the "Chromium gives Google power over the web", as it is permissively licensed, and there is at least one other giant stakeholder in the form of Microsoft.

Kind of makes me wish GNU and Apple would do what Microsoft has done, integrate a Chromium-based WebView into the OS and optimize it to the gills. The battle between Blink (Chromium), WebKit and Gecko has already been lost, might as well give your users the best UX they can get.

[1]There is work being done on native GTK clients by third parties, namely

- Paper Plane for Telegram: https://github.com/paper-plane-developers/paper-plane

- Whakarere for Whatsapp: https://github.com/tobagin/whakarere

Re:Proton Mail gets a desktop app for encrypted email and ca... by Anon826 on Thursday December 14, 2023 @09:39AM (#38641786)
> And I don't really buy the "Chromium gives Google power over the web", as it is permissively licensed, and there is at least one other giant stakeholder in the form of Microsoft.

Google completely controls Chromium, it is their project, they decide what patches are accepted into the code. Microsoft Edge just like Brave and the other forks all depend on Google for the actual code, all they do is add some minor features. Google does not care about Microsoft's opinion regarding Chromium's direction.

Re:Proton Mail gets a desktop app for encrypted email and ca... by jorvi on Thursday December 14, 2023 @07:11PM (#38649349)
You have a deep misunderstanding of what "control" means.
Re:Proton Mail gets a desktop app for encrypted email and ca... by afavour on Thursday December 14, 2023 @09:22AM (#38641610)
> Kind of makes me wish GNU and Apple would do what Microsoft has done, integrate a Chromium-based WebView into the OS

It’s not Chromium based but Apple does have exactly this in the OS. Given both Chromium and WebKit target the same web standards there should be a solid crossover. The reality isn’t there but it wouldn’t take much (except for willingness on Apple’s part, which is hard to come by)

Re:Proton Mail gets a desktop app for encrypted email and ca... by jorvi on Thursday December 14, 2023 @09:45AM (#38641859)
Yeah I know Apple has their own WkWebview (maybe they were even the first? not sure). But as you pointed out, it requires devs to look out for any edge cases / missing features it has in comparison to Chromium's Webview.

The nice thing about a universal Webview is that devs no longer have to spend time testing across web engines. All they would have to do is test against a few generations of Chromium.

I know that's not a thing free software stans like to think about or hear because its already been happening in slow-motion, with less and less devs testing against anything but Chromium, but I feel there are strong benefits to it.

In a way its the SystemD debacle all over again. Centralization like that feels spooky and very un-unixy, but it brings such an enormous host of benefits.

Re:Proton Mail gets a desktop app for encrypted email and ca... by forward1 on Thursday December 14, 2023 @10:56AM (#38642716)
A simple XSS turns into RCE with Electron desktop apps. I don't understand how technically competent people can in good faith accept this outrageous risk.
Re:Proton Mail gets a desktop app for encrypted email and ca... by eviks on Thursday December 14, 2023 @09:28AM (#38641673)
How is telegram Electron if it's https://github.com/telegramdesktop/tdesktop C++/QT?
Re:Proton Mail gets a desktop app for encrypted email and ca... by jorvi on Thursday December 14, 2023 @09:35AM (#38641750)
Thanks, for letting me know, edited!

Its performance has always felt very "webby" to me. Goes to show native is not a silver bullet for all our UI responsiveness woes :)

Re:Proton Mail gets a desktop app for encrypted email and ca... by odiroot on Thursday December 14, 2023 @11:58AM (#38643642)
It's very snappy for me on Plasma. One of the fastest apps actually.
Re:Proton Mail gets a desktop app for encrypted email and ca... by przmk on Thursday December 14, 2023 @09:26AM (#38641653)
Telegram Desktop is fortunately not an electron app. It's Qt.
Re:Proton Mail gets a desktop app for encrypted email and ca... by jorvi on Thursday December 14, 2023 @09:34AM (#38641731)
Thanks, edited!

I must admit it / its performance feels very "webby"

Re:Proton Mail gets a desktop app for encrypted email and ca... by przmk on Thursday December 14, 2023 @02:17PM (#38645881)
That's strange. It's by far the snappiest, modern IM app that I've used.
Re:Proton Mail gets a desktop app for encrypted email and ca... by jwells89 on Thursday December 14, 2023 @09:32AM (#38641707)
The official Telegram client is Qt on Windows and Linux and AppKit on macOS, not Electron.
Re:Proton Mail gets a desktop app for encrypted email and ca... by ksec on Thursday December 14, 2023 @09:42AM (#38641822)
So we need to to better optimise Electron to lower memory usage and CPU resources.
Re:Proton Mail gets a desktop app for encrypted email and ca... by carlosjobim on Thursday December 14, 2023 @09:38AM (#38641779)
> Kind of makes me wish GNU and Apple would do what Microsoft has done, integrate a Chromium-based WebView into the OS and optimize it to the gills.

For MacOS, you can almost always get high quality native apps. I don't know why this isn't the case on other platforms.

Strangely enough, it is mostly the mega-corps that insist on not making native apps, even though they should have all resources for it: VSCode, Spotify, YouTube, WhatsApp. Through and through laggy garbage apps if you don't have the latest machine.

Re:Proton Mail gets a desktop app for encrypted email and ca... by hollerith on Thursday December 14, 2023 @09:59AM (#38642055)
>laggy garbage apps if you don't have the latest machine.

Does not describe Youtube.com or VSCode in my experience.

Re:Proton Mail gets a desktop app for encrypted email and ca... by carlosjobim on Thursday December 14, 2023 @10:22AM (#38642312)
If you're on an Intel MacBook, using YouTube Music is a miserable experience. As for YouTube.com itself, it's okay, but FreeTube is significantly more responsive.

VSCode was more laggy than native competitors on my machine. Especially when selecting text. Maybe our tolerance for lag is different? I know a ton of people swear by VSCode, but when an app has bad latency on basic interface functions it just throws me off. People with higher lag/latency tolerance may be right, that it's worth the trade-off to get an otherwise better app. But I will always go for non-lag native apps.

Re:Proton Mail gets a desktop app for encrypted email and ca... by acdha on Thursday December 14, 2023 @11:50AM (#38643489)
> VSCode was more laggy than native competitors on my machine. Especially when selecting text. Maybe our tolerance for lag is different?

This is interesting because when I measured that a couple years ago it was one of the fastest options, right up with the native apps. I wonder whether there’s something like display scaling or an extension responsible for the difference.

Re:Proton Mail gets a desktop app for encrypted email and ca... by fauigerzigerk on Thursday December 14, 2023 @11:44AM (#38643387)
>VSCode was more laggy than native competitors on my machine.

VSCode has become really fast in the last year or so. Previously, I sometimes used other text editors for a quick edit, but now any lag that VSCode may still have has fallen below my personal sensory threshold.

I dread the situations where I have to resort to Xcode. It's native, but it's unbelievably slow and crashes more often than any software I have used since Windows 3.1.

Re:Proton Mail gets a desktop app for encrypted email and ca... by carlosjobim on Thursday December 14, 2023 @03:49PM (#38647042)
Maybe it's time to give it another try, then. It was about two years ago that I gave it a test ride.