From d6fa17122fc2ec0c343ccb27ed7b69d2c09dd7d3 Mon Sep 17 00:00:00 2001 From: Timon Date: Thu, 29 Oct 2026 16:36:57 +0000 Subject: [PATCH] Desktop: Resolve relative file paths passed to cli (#4844) Desktop: Resolve relative file paths passed on the command line --- desktop/src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src/cli.rs b/desktop/src/cli.rs index 3af8e10c4a..72c5d6d2b6 100644 --- a/desktop/src/cli.rs +++ b/desktop/src/cli.rs @@ -1,7 +1,7 @@ #[derive(clap::Parser)] #[clap(name = "graphite", version)] pub struct Cli { - #[arg(help = "Files to open on startup")] + #[arg(help = "Files to open on startup", value_parser = |path: &str| std::path::absolute(path))] pub files: Vec, #[arg(long, action = clap::ArgAction::SetTrue, help = "Disable hardware accelerated UI rendering")]