From 212413ff1a809a8df8675d1ae1d091fa43e0e932 Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Thu, 30 Apr 2026 23:02:38 +0300 Subject: [PATCH] fix: windows and macos builds --- src-tauri/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 6045399..f5e7413 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1827,7 +1827,7 @@ pub fn run() { .register_uri_scheme_protocol("screenshots", |_app, request| { let uri = request.uri().path(); let decoded_path = percent_encoding::percent_decode_str(uri).decode_utf8_lossy(); - let path_str = decoded_path.to_string(); + let mut path_str = decoded_path.to_string(); #[cfg(target_os = "windows")] if path_str.starts_with('/') { path_str = path_str[1..].to_string();