mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-07 12:25:15 +00:00
Hotfix: wallpaper was not set on startup.
This commit is contained in:
@@ -137,6 +137,9 @@ Singleton {
|
|||||||
// Kickoff Font service
|
// Kickoff Font service
|
||||||
FontService.init()
|
FontService.init()
|
||||||
|
|
||||||
|
// Kickoff HooksService
|
||||||
|
HooksService.init()
|
||||||
|
|
||||||
Qt.callLater(function () {
|
Qt.callLater(function () {
|
||||||
validateMonitorConfigurations()
|
validateMonitorConfigurations()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -16,6 +16,13 @@ Singleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: WallpaperService
|
||||||
|
function onWallpaperChanged(screenName, path) {
|
||||||
|
executeWallpaperHook(path, screenName)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Execute wallpaper change hook
|
// Execute wallpaper change hook
|
||||||
function executeWallpaperHook(wallpaperPath, screenName) {
|
function executeWallpaperHook(wallpaperPath, screenName) {
|
||||||
if (!Settings.data.hooks?.enabled) {
|
if (!Settings.data.hooks?.enabled) {
|
||||||
|
|||||||
@@ -286,11 +286,6 @@ Singleton {
|
|||||||
// Emit signal for this specific wallpaper change
|
// Emit signal for this specific wallpaper change
|
||||||
root.wallpaperChanged(screenName, path)
|
root.wallpaperChanged(screenName, path)
|
||||||
|
|
||||||
// Execute wallpaper change hook after the change is complete
|
|
||||||
if (HooksService) {
|
|
||||||
HooksService.executeWallpaperHook(path, screenName)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Restart the random wallpaper timer
|
// Restart the random wallpaper timer
|
||||||
if (randomWallpaperTimer.running) {
|
if (randomWallpaperTimer.running) {
|
||||||
randomWallpaperTimer.restart()
|
randomWallpaperTimer.restart()
|
||||||
|
|||||||
@@ -107,12 +107,6 @@ ShellRoot {
|
|||||||
// Ensure our location singleton is created as soon as possible so we start fetching weather asap
|
// Ensure our location singleton is created as soon as possible so we start fetching weather asap
|
||||||
LocationService.init()
|
LocationService.init()
|
||||||
|
|
||||||
// Initialize UpdateService
|
|
||||||
UpdateService.init()
|
|
||||||
|
|
||||||
// Initialize HooksService
|
|
||||||
HooksService.init()
|
|
||||||
|
|
||||||
// Kickoff NightLight service
|
// Kickoff NightLight service
|
||||||
NightLightService.apply()
|
NightLightService.apply()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user