diff --git a/src/executor.rs b/src/executor.rs index 51d7787..183bc31 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -1,10 +1,4 @@ -use std::{ - collections::VecDeque, - env, - ops::ControlFlow, - process::{self, ExitCode}, - sync::Mutex, -}; +use std::{env, ops::ControlFlow, process::ExitCode, sync::Mutex}; use lune::Lune; @@ -94,8 +88,8 @@ pub async fn run_standalone(signature: Vec, bin: Vec) -> Result>(); - args.pop_front(); + // Skip the first argument which is the path to current executable + let args = env::args().skip(1).collect::>(); let result = Lune::new() .with_args(args)