Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

test(updater): der Desktop-Eintrag wird an der zitierten Exec-Form geprueft, Windows-Pfade haben Backslashes

David53fec09c7529
diff --git a/src-tauri/src/commands/self_migrate.rs b/src-tauri/src/commands/self_migrate.rs
index e5c4c72c..9fc967d9 100644
--- a/src-tauri/src/commands/self_migrate.rs
+++ b/src-tauri/src/commands/self_migrate.rs
@@ -656,7 +656,10 @@ mod tests {
let entry = write_desktop_entry(&layout, &layout.appimage()).expect("entry");
let text = std::fs::read_to_string(&entry).expect("entry text");
- assert!(text.contains(&layout.appimage().to_string_lossy().to_string()));
+ // The Exec line carries the path in freedesktop quoting, so a Windows
+ // temp path with backslashes appears escaped; the contract is the quoted
+ // form, and that is what the assertion reads.
+ assert!(text.contains(&quote_exec(&layout.appimage())));
let icons = copy_icons(&layout, std::slice::from_ref(&fake_system));
assert_eq!(icons, vec![layout.icon_file("128x128")]);