talk-desktop icon indicating copy to clipboard operation
talk-desktop copied to clipboard

Consider using Tauri

Open kra-mo opened this issue 2 months ago • 1 comments

This was brought up in the past but no issue has been opened for it, so I'm creating one now.

Also split out from https://github.com/nextcloud/talk-ios/issues/2228#issuecomment-3425586655.

As mentioned there, Electron has quite a few issues inherent to it. Performance is the biggest. But improper support of OS-level features is another, such as text replacement on macOS.

While using the system web view can be considered a downside for a desktop-only web app, our app should be well tested against the system web engine as well because of the browser, so I believe it should not be as big of an issue for us.

WebKitGTK has also gained proper WebRTC support recently so I think that specifically should no longer be an issue.

I would personally be in favor of a move to Tauri for the aforementioned performance and usability benefits.

kra-mo avatar Oct 21 '25 11:10 kra-mo

Problems with Tauri:

  • Cross-platform + Cross-browser — no control over runtime. Every OS and user have different web-view for rendering
    • With Electron we can use the latest Chromium features. In Tauri we need to support old Safari.
  • Rust — with all my love to Rust, it isn't widely used in Nextcloud and an additional (not a simple one) ecosystem
    • Any frontender can replace me in a short time. Backend devs also understand the code. It won't be the case with Rust.
  • Still kind of a young project
    • When we started Talk Desktop, it didn't even support WebRTC, and I still hear negative comments around edge cases
    • Having WebRTC, workers, WASM, WebGL2 used in Talk, I'd wait for some time

So with all the troubles with Electron, I'd still prefer Electron over Tauri.

Of course, having active Tauri development, it might change in the future.

ShGKme avatar Oct 21 '25 14:10 ShGKme