An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
preserve sudo env; required for WAYLAND_DISPLAY
Sahil Yeole0f307e7ca2aa
diff --git a/src/platform/linux.rs b/src/platform/linux.rsindex 58e9a9e0f..db37d573a 100644--- a/src/platform/linux.rs+++ b/src/platform/linux.rs@@ -591,10 +591,8 @@ wherelet xdg = &format!("XDG_RUNTIME_DIR=/run/user/{}", uid) as &str;let mut args = vec![xdg, "-u", &username, cmd.to_str().unwrap_or("")];args.append(&mut arg.clone());- // -E required for opensuse- if is_opensuse() {+ // -E is required to preserve envargs.insert(0, "-E");- }let task = Command::new("sudo").envs(envs).args(args).spawn()?;Ok(Some(task))