Desktop: Register the Graphite app as a file handler on Mac (#4106)

* Desktop: Implement native file open handler

* Desktop: Register file types on Mac

* Review
This commit is contained in:
Timon
2026-05-06 13:05:30 +00:00
committed by GitHub
parent 8ae8c47fe1
commit 1c2ac19b16
7 changed files with 213 additions and 33 deletions
+2 -2
View File
@@ -131,13 +131,13 @@ fn platform_settings(instance_dir: &Path) -> Settings {
{
let exe = std::env::current_exe().expect("cannot get current exe path");
let app_root = exe.parent().and_then(|p| p.parent()).expect("bad path structure").parent().expect("bad path structure");
return Settings {
Settings {
main_bundle_path: app_root.to_str().map(CefString::from).unwrap(),
multi_threaded_message_loop: 0,
external_message_pump: 1,
no_sandbox: 1, // GPU helper crashes when running with sandbox
..base
};
}
}
#[cfg(not(target_os = "macos"))]