Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop-gpui): run the bundled CLI when the AppImage launcher passes --cap-cli

Richie McIlroy3e830844c230
diff --git a/apps/desktop-gpui/src/main.rs b/apps/desktop-gpui/src/main.rs
index b05741e9d..10cdb7b09 100644
--- a/apps/desktop-gpui/src/main.rs
+++ b/apps/desktop-gpui/src/main.rs
@@ -268,6 +268,14 @@ fn main() {
}
}
+ // The AppImage CLI launcher re-enters the AppImage with `--cap-cli`; hand
+ // it to the bundled CLI before logging, single-instance or the GUI start.
+ #[cfg(target_os = "linux")]
+ if let Err(error) = cap_cli_install::appimage::dispatch_cli() {
+ eprintln!("{error}");
+ std::process::exit(1);
+ }
+
let _log_guard = init_logging();
single_instance::acquire();