From d458d8c07a237c0809c61db6090493ca7528179b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 18:00:21 +0000 Subject: [PATCH 1/4] Initial plan From 6f63e0f4d053f48960946926e9c6540b774fc02b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 18:02:30 +0000 Subject: [PATCH 2/4] fix(desktop): apply wallpaper on version changes before legacy guards Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/3c085026-21a9-4afb-b39f-1d04f1ddd49f Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- modules/core/sovran_systemsos-desktop.nix | 32 ++++++++++++++--------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/modules/core/sovran_systemsos-desktop.nix b/modules/core/sovran_systemsos-desktop.nix index b97446f..579816b 100644 --- a/modules/core/sovran_systemsos-desktop.nix +++ b/modules/core/sovran_systemsos-desktop.nix @@ -22,6 +22,24 @@ let STAMP="$HOME/.config/sovran-theme-applied" USER_DB="$HOME/.config/dconf/user" + # ── Always apply wallpaper on version change ── + WALLPAPER_VERSION="${customWallpaper.version}" + WALLPAPER_STAMP="$HOME/.config/sovran-wallpaper-version" + + BG_DIR="/run/current-system/sw/share/backgrounds/sovran" + ULTRAWIDE="$BG_DIR/sovran-ultrawide.png" + CHOSEN="$ULTRAWIDE" + + if [ ! -f "$WALLPAPER_STAMP" ] || [ "$(cat "$WALLPAPER_STAMP")" != "$WALLPAPER_VERSION" ]; then + if [ -f "$CHOSEN" ]; then + ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri "'file://$CHOSEN'" + ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri-dark "'file://$CHOSEN'" + ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-options "'zoom'" + mkdir -p "$(dirname "$WALLPAPER_STAMP")" + echo "$WALLPAPER_VERSION" > "$WALLPAPER_STAMP" + fi + fi + # Already applied — skip if [ -f "$STAMP" ]; then exit 0 @@ -36,19 +54,7 @@ let # Fresh install — no user-db exists yet, apply full Sovran theme below - BG_DIR="/run/current-system/sw/share/backgrounds/sovran" - ULTRAWIDE="$BG_DIR/sovran-ultrawide.png" - - CHOSEN="$ULTRAWIDE" - ${pkgs.dconf}/bin/dconf load / << EOF -[org/gnome/desktop/background] -picture-uri='file://$CHOSEN' -picture-uri-dark='file://$CHOSEN' -picture-options='zoom' -primary-color='#000000' -secondary-color='#000000' - [org/gnome/desktop/interface] color-scheme='prefer-dark' enable-animations=true @@ -412,4 +418,4 @@ in } ]; -} \ No newline at end of file +} From 8cf43fd3d1ba8420636650e0440134b2bb126b9b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 18:03:14 +0000 Subject: [PATCH 3/4] chore(desktop): simplify wallpaper path usage in init script Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/3c085026-21a9-4afb-b39f-1d04f1ddd49f Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- modules/core/sovran_systemsos-desktop.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/core/sovran_systemsos-desktop.nix b/modules/core/sovran_systemsos-desktop.nix index 579816b..dea10c1 100644 --- a/modules/core/sovran_systemsos-desktop.nix +++ b/modules/core/sovran_systemsos-desktop.nix @@ -28,12 +28,11 @@ let BG_DIR="/run/current-system/sw/share/backgrounds/sovran" ULTRAWIDE="$BG_DIR/sovran-ultrawide.png" - CHOSEN="$ULTRAWIDE" if [ ! -f "$WALLPAPER_STAMP" ] || [ "$(cat "$WALLPAPER_STAMP")" != "$WALLPAPER_VERSION" ]; then - if [ -f "$CHOSEN" ]; then - ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri "'file://$CHOSEN'" - ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri-dark "'file://$CHOSEN'" + if [ -f "$ULTRAWIDE" ]; then + ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri "'file://$ULTRAWIDE'" + ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri-dark "'file://$ULTRAWIDE'" ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-options "'zoom'" mkdir -p "$(dirname "$WALLPAPER_STAMP")" echo "$WALLPAPER_VERSION" > "$WALLPAPER_STAMP" From a0e110b376fae7108a472d6df813bd5f6ffce7df Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 18:04:02 +0000 Subject: [PATCH 4/4] fix(desktop): harden wallpaper version stamp read Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/3c085026-21a9-4afb-b39f-1d04f1ddd49f Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- modules/core/sovran_systemsos-desktop.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/core/sovran_systemsos-desktop.nix b/modules/core/sovran_systemsos-desktop.nix index dea10c1..dac3b1c 100644 --- a/modules/core/sovran_systemsos-desktop.nix +++ b/modules/core/sovran_systemsos-desktop.nix @@ -29,7 +29,12 @@ let BG_DIR="/run/current-system/sw/share/backgrounds/sovran" ULTRAWIDE="$BG_DIR/sovran-ultrawide.png" - if [ ! -f "$WALLPAPER_STAMP" ] || [ "$(cat "$WALLPAPER_STAMP")" != "$WALLPAPER_VERSION" ]; then + CURRENT_WALLPAPER_VERSION="" + if [ -r "$WALLPAPER_STAMP" ]; then + read -r CURRENT_WALLPAPER_VERSION < "$WALLPAPER_STAMP" + fi + + if [ "$CURRENT_WALLPAPER_VERSION" != "$WALLPAPER_VERSION" ]; then if [ -f "$ULTRAWIDE" ]; then ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri "'file://$ULTRAWIDE'" ${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri-dark "'file://$ULTRAWIDE'"