Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: scope Wayland stop routes to Linux and tests
Richie McIlroy9355fe0d4528
diff --git a/apps/desktop/src-tauri/src/clean_capture.rs b/apps/desktop/src-tauri/src/clean_capture.rsindex fc970f997..ecba81b76 100644--- a/apps/desktop/src-tauri/src/clean_capture.rs+++ b/apps/desktop/src-tauri/src/clean_capture.rs@@ -59,7 +59,9 @@ impl SavedWindow {#[derive(Clone, Copy, PartialEq, Eq)]pub(crate) enum StopRoute {+ #[cfg(any(target_os = "linux", test))]Tray,+ #[cfg(any(target_os = "linux", test))]Portal,}@@ -82,7 +84,9 @@ struct Lease {impl StopRoute {fn index(self) -> usize {match self {+ #[cfg(any(target_os = "linux", test))]Self::Tray => 0,+ #[cfg(any(target_os = "linux", test))]Self::Portal => 1,}}diff --git a/apps/desktop/src-tauri/src/hotkeys.rs b/apps/desktop/src-tauri/src/hotkeys.rsindex c669c185b..39a3fb000 100644--- a/apps/desktop/src-tauri/src/hotkeys.rs+++ b/apps/desktop/src-tauri/src/hotkeys.rs@@ -95,6 +95,7 @@ fn clean_capture_shortcut() -> Shortcut {Shortcut::new(Some(Modifiers::CONTROL | Modifiers::SHIFT), Code::F9)}+#[cfg(any(target_os = "linux", test))]fn existing_clean_capture_stop(store: &HotkeysStore) -> Result<bool, String> {let shortcut = clean_capture_shortcut();let mut existing_stop = false;