Merge pull request #251 from jacob-sabella/feature/w-engine-login-palette-sync
fix(w-engine): sync palette when restoring wallpaper on startup
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
id = "tadomika_ari/w-engine"
|
||||
name = "W Engine"
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
# Tile and control callbacks are Luau closures rather than named globals, which
|
||||
# the host resolves from plugin API 9 onwards.
|
||||
plugin_api = 9
|
||||
|
||||
+5
-1
@@ -791,13 +791,17 @@ publishStatus()
|
||||
noctalia.runAsync(
|
||||
"pkill linux-wallpaper 2>/dev/null; sleep 1; pkill -KILL linux-wallpaper 2>/dev/null; true",
|
||||
function()
|
||||
-- Bring back whatever was playing before the reload, cycle included.
|
||||
-- Bring back whatever was playing before the reload, cycle included. The
|
||||
-- palette is re-synced alongside the process: the shell restores its own
|
||||
-- wallpaper on login, which drops the still we set for the live scene and
|
||||
-- leaves the colors from whatever it picked instead.
|
||||
for _, output in ipairs(noctalia.outputs()) do
|
||||
local name = output.name
|
||||
local id = data.current[name]
|
||||
if type(id) == "string" and id ~= "" then
|
||||
elapsed[name] = 0
|
||||
launch(name, id)
|
||||
syncPalette(name, id)
|
||||
end
|
||||
end
|
||||
publishStatus()
|
||||
|
||||
Reference in New Issue
Block a user