-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTCPeerConnection error on Linux builds #625
Comments
Reported on Fedora, Arch Linux, and Ubuntu |
This is gonna be tricky to fix, I think: The last comment says even the latest webviewgtk is still missing stable support. There is a flag that can be enabled, but since this is system install we'd have install a custom version maybe, I'm not even sure if that's doable or worth it if it's not stable. |
For now the quickest workaround for Linux users is the browser app. I think we should encourage Linux users to use the browser app for now. We should only show the banner that says "please use the native app" on MacOS and Windows. |
@adamchalmers agreed. |
Under Linux, I believe it's using the https://webkitgtk.org/ backend (
The app was specifically failing with Maybe we can determine if |
Is there anything (in issue or something) we can follow so we know when they finish their support? |
I think maybe we don't support linux in the short term, and in the longer term either |
From their docs:
This gives me a bit of hope. I'm trying to find bugs in the bug tracker, maybe https://bugs.webkit.org/show_bug.cgi?id=235885 ? It's funny - it should be possible to enable this somehow, the state of the world from the bug tracker makes it seem like we may be able to toggle this on? |
Maybe https://www.youtube.com/watch?v=GfxOQbPNsUY too? |
I wasn't super great about updating this bug but here's the laydown of the current state: On Linux, Lastly, the runtime needs to enable WebRTC for webkit2gtk (it's not on by default) which involves toggling a config. Here's a diff that I had locally when testing this diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 5ca0ed8..a0ebb82 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -6,6 +6,10 @@ use std::io::Read;
use anyhow::Result;
use oauth2::TokenResponse;
use tauri::{InvokeError, Manager};
+
+#[cfg(target_os = "linux")]
+use webkit2gtk::WebViewExt;
+
const DEFAULT_HOST: &str = "https://api.kittycad.io";
/// This command returns the a json string parse from a toml file at the path.
@@ -130,13 +134,23 @@ async fn get_user(
fn main() {
tauri::Builder::default()
.setup(|app| {
+ let window = app.get_window("main").unwrap();
+
#[cfg(debug_assertions)] // only include this code on debug builds
{
- let window = app.get_window("main").unwrap();
// comment out the below if you don't devtools to open everytime.
// it's useful because otherwise devtools shuts everytime rust code changes.
window.open_devtools();
}
+
+ #[cfg(target_os = "linux")]
+ window.with_webview(|webview| {
+ let view = webview.inner();
+ if let Some(settings) = WebViewExt::settings(&*view) {
+ settings.set_enable_webrtc(true);
+ }
+ });
+
Ok(())
})
.invoke_handler(tauri::generate_handler![ However, this requires a new version of 🚨
|
@JonasKruckenberg Hi! FYI, the comment from @paultag directly above is what I was talking with you about on twitter. |
Linux am I right? 🙃 Sorry that you guys had to go through this, but seems like you figured it out! |
@JonasKruckenberg to be fair it only took a few hours (although I have a hunch being a Debian Developer helped a lot here) -- it really wasn't an issue or even something I felt the need to file an issue about with Tauri. That being said, just to communicate more explicitly the thing we're waiting for on Linux support (or rather; for me to start working on Linux support for KCMA) is either a release of tauri classic / 1.0 (given we're on Thanks for maintaining Tauri, it's great stuff! |
As an update for folks watching the issue: I just checked on this issue again since we updated Tauri at some point. We're still pinned against |
are there any updates on this? it looks like tauri v2 pins |
@dcl so sorry -- haven't had a chance to reply before now. We've been working to get this resolved; we (KittyCAD/Zoo) paid for some upstream work to fix some related bugs in upstream gstreamer/webkit2gtk after it's been isolated, and we're looking a LOT better. They did a TON of great work and we're close to having first-class Linux builds. Hang tight! |
with the latest release we FINALLY HAVE linux builds, thank you electron |
The text was updated successfully, but these errors were encountered: