Show the CoreDesktop logo on GNOME's login screen
shellcheck / shellcheck (push) Successful in 18s

Arch's gdm package sets the login screen logo to the Arch logo in a
30_ gschema override. A 40_ override wins over it; Arch's GDM dconf
profile doesn't read /etc/dconf/db/gdm.d, so that route has no effect.
install.sh runs system/login-logo.sh, and a migration runs it on
existing machines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 06:29:19 -07:00
co-authored by Claude Opus 5.5
parent 71634875e2
commit ba4dc17af1
4 changed files with 52 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 873 129" width="873" height="129" role="img" aria-label="CoreDesktop">
<title>CoreDesktop</title>
<defs><clipPath id="glyph-box"><rect width="58" height="57"/></clipPath></defs>
<path transform="translate(0 80) scale(.1 -.1)" fill="#ff3daf" d="M350 616 c-26 -126 -109 -201 -252 -231 -19 -3 -28 -12 -28 -24 0 -14 10 -20 45 -24 118 -17 219 -119 240 -245 5 -31 11 -42 25 -42 13 0 19 11 24 48 8 58 55 142 99 176 47 36 117 66 155 66 25 0 32 4 32 19 0 15 -11 22 -50 30 -73 16 -122 44 -168 96 -40 46 -72 117 -72 162 0 16 -6 23 -19 23 -16 0 -22 -11 -31 -54z"/>
<g fill="none" stroke="#ffffff" stroke-width="13" stroke-linejoin="round">
<path transform="translate(75 55)" d="M51 6.5 H16.0 A9.5 9.5 0 0 0 6.5 16 V41.0 A9.5 9.5 0 0 0 16 50.5 H51"/>
<path transform="translate(149 55)" d="M16.0 6.5 H42.0 A9.5 9.5 0 0 1 51.5 16 V41.0 A9.5 9.5 0 0 1 42 50.5 H16.0 A9.5 9.5 0 0 1 6.5 41 V16.0 A9.5 9.5 0 0 1 16 6.5 Z"/>
<path transform="translate(223 55)" d="M6.5 57 V16.0 A9.5 9.5 0 0 1 16 6.5 H42.0 A9.5 9.5 0 0 1 51.5 16 V27"/>
<path transform="translate(297 55)" d="M47 50.5 H16.0 A9.5 9.5 0 0 1 6.5 41 V16.0 A9.5 9.5 0 0 1 16 6.5 H42.0 A9.5 9.5 0 0 1 51.5 16 V19.5 A9.5 9.5 0 0 1 42 29 H6.5"/>
<path transform="translate(371 55)" d="M51.5 0 V41.0 A9.5 9.5 0 0 1 42 50.5 H16.0 A9.5 9.5 0 0 1 6.5 41 V28.0 A9.5 9.5 0 0 1 16 18.5 H51.5"/>
<path transform="translate(445 55)" d="M47 50.5 H16.0 A9.5 9.5 0 0 1 6.5 41 V16.0 A9.5 9.5 0 0 1 16 6.5 H42.0 A9.5 9.5 0 0 1 51.5 16 V19.5 A9.5 9.5 0 0 1 42 29 H6.5"/>
<path transform="translate(519 55)" d="M52 6.5 H16.0 A9.5 9.5 0 0 0 6.5 16 V19.5 A9.5 9.5 0 0 0 16 29 H42.0 A9.5 9.5 0 0 1 51.5 38.5 V41.0 A9.5 9.5 0 0 1 42 50.5 H6"/>
<path transform="translate(593 55)" clip-path="url(#glyph-box)" d="M6.5 0 V57 M6.5 28.5 L62 -9 M6.5 28.5 L62 66"/>
<path transform="translate(667 55)" d="M17 0 V41.0 A9.5 9.5 0 0 0 26.5 50.5 H42.0 M51.5 34 V41.0 A9.5 9.5 0 0 1 42 50.5 M0 16 H58"/>
<path transform="translate(741 55)" d="M16.0 6.5 H42.0 A9.5 9.5 0 0 1 51.5 16 V41.0 A9.5 9.5 0 0 1 42 50.5 H16.0 A9.5 9.5 0 0 1 6.5 41 V16.0 A9.5 9.5 0 0 1 16 6.5 Z"/>
<path transform="translate(815 55)" d="M6.5 57 V16.0 A9.5 9.5 0 0 1 16 6.5 H42.0 A9.5 9.5 0 0 1 51.5 16 V29.0 A9.5 9.5 0 0 1 42 38.5 H6.5"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
#
# Purpose : Show the CoreDesktop logo on GNOME's login screen in place of the
# Arch logo.
#
# Arch's gdm package sets the logo in 30_org.archlinux.gdm.gschema.override.
# glib-compile-schemas reads override files in name order and the last one to
# set a key wins, so 40_coredesktop overrides it. (Arch's GDM dconf profile has
# no system-db:gdm, so the usual /etc/dconf/db/gdm.d recipe has no effect.)
# pacman reruns glib-compile-schemas when packages change, and this file
# belongs to no package, so updates keep it.
set -e
LOGO=/usr/share/pixmaps/coredesktop-logo.svg
OVERRIDE=/usr/share/glib-2.0/schemas/40_coredesktop.gschema.override
echo "Setting the login screen logo..."
# GDM runs as its own user, which can't read files in ~/.local
sudo install -D -m 644 "$HOME/.local/share/coredesktop/system/coredesktop-logo.svg" "$LOGO"
sudo tee "$OVERRIDE" > /dev/null << EOF
# CoreDesktop: show the CoreDesktop logo on the login screen
[org.gnome.login-screen]
logo='$LOGO'
EOF
sudo glib-compile-schemas /usr/share/glib-2.0/schemas