From e3f50c0ce2fdb0aca5564cfb94ebff370fc9c6bf Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Thu, 4 Sep 2025 15:11:45 -0400 Subject: [PATCH] Hotfix: wallpaper was not set on startup. --- Commons/Settings.qml | 3 +++ Services/HooksService.qml | 7 +++++++ Services/WallpaperService.qml | 5 ----- shell.qml | 6 ------ 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Commons/Settings.qml b/Commons/Settings.qml index c3b4e4b..4481c2d 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -137,6 +137,9 @@ Singleton { // Kickoff Font service FontService.init() + // Kickoff HooksService + HooksService.init() + Qt.callLater(function () { validateMonitorConfigurations() }) diff --git a/Services/HooksService.qml b/Services/HooksService.qml index b14e3d6..4f04124 100644 --- a/Services/HooksService.qml +++ b/Services/HooksService.qml @@ -16,6 +16,13 @@ Singleton { } } + Connections { + target: WallpaperService + function onWallpaperChanged(screenName, path) { + executeWallpaperHook(path, screenName) + } + } + // Execute wallpaper change hook function executeWallpaperHook(wallpaperPath, screenName) { if (!Settings.data.hooks?.enabled) { diff --git a/Services/WallpaperService.qml b/Services/WallpaperService.qml index 2662061..705fb67 100644 --- a/Services/WallpaperService.qml +++ b/Services/WallpaperService.qml @@ -286,11 +286,6 @@ Singleton { // Emit signal for this specific wallpaper change root.wallpaperChanged(screenName, path) - // Execute wallpaper change hook after the change is complete - if (HooksService) { - HooksService.executeWallpaperHook(path, screenName) - } - // Restart the random wallpaper timer if (randomWallpaperTimer.running) { randomWallpaperTimer.restart() diff --git a/shell.qml b/shell.qml index e194c86..1e0f9ba 100644 --- a/shell.qml +++ b/shell.qml @@ -107,12 +107,6 @@ ShellRoot { // Ensure our location singleton is created as soon as possible so we start fetching weather asap LocationService.init() - // Initialize UpdateService - UpdateService.init() - - // Initialize HooksService - HooksService.init() - // Kickoff NightLight service NightLightService.apply() }