diff --git a/src/routes/events/[event_id]/(launcher)/cfg_components/launcher_cfg_wallpaper.svelte b/src/routes/events/[event_id]/(launcher)/cfg_components/launcher_cfg_wallpaper.svelte index 700aac56..60a18220 100644 --- a/src/routes/events/[event_id]/(launcher)/cfg_components/launcher_cfg_wallpaper.svelte +++ b/src/routes/events/[event_id]/(launcher)/cfg_components/launcher_cfg_wallpaper.svelte @@ -26,6 +26,9 @@ let apply_status = $state(''); let restore_status = $state(''); let last_device_id: string | null = null; +let linux_test_popup_open = $state(false); +let linux_test_popup_data = $state | null>(null); + function get_native_device(): NativeDeviceLike | null { const store_loc = $ae_loc as { native_device?: NativeDeviceLike }; return store_loc.native_device ?? null; @@ -140,7 +143,11 @@ async function handle_apply() { account_id: String($ae_api.account_id ?? '') }); - if (result?.success) { + if (result?.success && (result as any).linux_test_mode) { + linux_test_popup_data = result as Record; + linux_test_popup_open = true; + set_apply_status('Linux dev mode โ€” see popup'); + } else if (result?.success) { $events_loc.launcher.wallpaper_applied_url = url || null; $events_loc.launcher.wallpaper_applied_url_external = url_ext || null; set_apply_status('Applied โœ“'); @@ -328,3 +335,76 @@ const section_description = $derived( {/if} + + + +{#if linux_test_popup_open && linux_test_popup_data} + + +{/if} diff --git a/src/routes/events/[event_id]/(launcher)/launcher_background_sync.svelte b/src/routes/events/[event_id]/(launcher)/launcher_background_sync.svelte index c51590f3..b9beee78 100644 --- a/src/routes/events/[event_id]/(launcher)/launcher_background_sync.svelte +++ b/src/routes/events/[event_id]/(launcher)/launcher_background_sync.svelte @@ -71,7 +71,11 @@ async function apply_wallpaper_if_changed(device_other_json: unknown) { account_id: String($ae_api.account_id ?? '') }); - if (result?.success) { + if (result?.success && (result as any).linux_test_mode) { + // Linux dev mode: gsettings was skipped. Log and leave applied URL unset so + // the cfg component popup can show the details when triggered manually. + console.info('Sync: Wallpaper linux_test_mode โ€” would have applied:', (result as any).would_run); + } else if (result?.success) { $events_loc.launcher.wallpaper_applied_url = configured_url || null; $events_loc.launcher.wallpaper_applied_url_external = configured_url_external || null; if (log_lvl) console.log('Sync: Wallpaper applied.');