From f0c40226753aa3d32df3d76634b44f470121399c Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 26 Jan 2026 14:59:10 -0500 Subject: [PATCH] fix(native): restore safe handover by making launch_from_cache presentation-aware - Reverted handle_open_file to use native.launch_from_cache for atomic copy support. - Upgraded Electron main process to handle specialized launcher logic (LibreOffice/AppleScript) internally after the copy operation. - Ensures absolute paths and file existence before triggering OS apps. --- .../events/[event_id]/(launcher)/launcher_file_cont.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/events/[event_id]/(launcher)/launcher_file_cont.svelte b/src/routes/events/[event_id]/(launcher)/launcher_file_cont.svelte index 0927470e..152b1045 100644 --- a/src/routes/events/[event_id]/(launcher)/launcher_file_cont.svelte +++ b/src/routes/events/[event_id]/(launcher)/launcher_file_cont.svelte @@ -125,6 +125,9 @@ open_file_status = 'opening_file'; open_file_status_message = 'Opening Application'; + // Phase 2/5: Use the atomic copy-and-launch operation. + // The main process handler (file_handlers.ts) now handles the + // specialized LibreOffice/AppleScript logic internally after copying. const launch_result = await native.launch_from_cache({ cache_root, hash: event_file_obj.hash_sha256,