Skip to main content

spawn_start_page_watcher

Function spawn_start_page_watcher 

Source
pub fn spawn_start_page_watcher(
    pool: Arc<FsWatchPool>,
    config_watcher: Arc<ConfigState>,
    event_bus: Arc<EventBus>,
)
Expand description

Subscribe to browser-start-page.json via the shared FsWatchPool (the SAME pool instance the settings watcher uses — no new watcher subsystem) and broadcast the updated config to every connected client on change. Mirrors config_watcher_fs::spawn_settings_watcher exactly.

Fire-and-forget: watched for the process’s entire lifetime, same as settings.json — nothing for the caller to hold onto or unsubscribe.