diff options
| -rwxr-xr-x | build_files/build.sh | 7 | ||||
| -rwxr-xr-x | installer/build.sh | 9 | ||||
| -rwxr-xr-x | tests/test-desktop-branding-migration.sh | 7 |
3 files changed, 23 insertions, 0 deletions
diff --git a/build_files/build.sh b/build_files/build.sh index b4acb10..916e29d 100755 --- a/build_files/build.sh +++ b/build_files/build.sh @@ -46,6 +46,13 @@ install_regular_file \ "/ctx/system_files/usr/share/pixmaps/bazzite-logo-le.svg" \ "/usr/share/icons/hicolor/scalable/apps/aerocore-logo.svg" +# KDE's About System KCM loads this path from kcm-about-distrorc. The base +# image may provide it as a symlink, so replace the directory entry itself or +# the KCM can continue rendering the upstream Bazzite logo. +install_regular_file \ + "/ctx/system_files/usr/share/pixmaps/system-logo-white.png" \ + "/usr/share/pixmaps/system-logo-white.png" + # Game Mode's Vapor splash asset is an upstream symlink on current Bazzite # images, while VGUI is a regular file. Replace both exact paths explicitly. for look_and_feel in com.valve.vapor.desktop com.valve.vgui.desktop; do diff --git a/installer/build.sh b/installer/build.sh index e027bd6..1920085 100755 --- a/installer/build.sh +++ b/installer/build.sh @@ -45,6 +45,15 @@ if [[ -d /src/system_files ]]; then cp -a /src/system_files/. / fi +# The live base can already contain this About System asset as a symlink. +# Replace the link itself so the installer UI also renders AeroCore branding. +if [[ -f /src/system_files/usr/share/pixmaps/system-logo-white.png ]]; then + rm -f /usr/share/pixmaps/system-logo-white.png + install -Dm0644 \ + /src/system_files/usr/share/pixmaps/system-logo-white.png \ + /usr/share/pixmaps/system-logo-white.png +fi + BRANDING_DIR="${SCRIPT_DIR}/branding" if [[ -d "${BRANDING_DIR}" ]]; then mkdir -p /usr/share/anaconda/pixmaps diff --git a/tests/test-desktop-branding-migration.sh b/tests/test-desktop-branding-migration.sh index 23ebdd2..4948b39 100755 --- a/tests/test-desktop-branding-migration.sh +++ b/tests/test-desktop-branding-migration.sh @@ -48,4 +48,11 @@ for path in \ grep -Fq "${path}" "${repo_root}/build_files/build.sh" done +# The About System logo may be a symlink in the Bazzite base image. Both image +# build paths must explicitly replace that directory entry with AeroCore's PNG. +grep -Fq '"/usr/share/pixmaps/system-logo-white.png"' \ + "${repo_root}/build_files/build.sh" +grep -Fq 'rm -f /usr/share/pixmaps/system-logo-white.png' \ + "${repo_root}/installer/build.sh" + echo "Desktop branding migration fixture passed" |
