diff --git a/backend/tauri/src/core/commands/mod.rs b/backend/tauri/src/core/commands/mod.rs index af5484acf6..b1068e11e1 100644 --- a/backend/tauri/src/core/commands/mod.rs +++ b/backend/tauri/src/core/commands/mod.rs @@ -11,6 +11,8 @@ use crate::utils; pub struct Cli { #[command(subcommand)] command: Option, + #[arg(raw = true)] + args: Vec, } #[derive(Subcommand, Debug)] @@ -59,6 +61,8 @@ pub fn parse() -> anyhow::Result<()> { Some(appimage) => std::path::PathBuf::from_str(&appimage).unwrap(), None => current_exe().unwrap(), }; + let mut args = args.clone(); + args.extend(vec!["--".to_string()]); std::process::Command::new(path).args(args).spawn().unwrap(); } }