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>
27 lines
1.0 KiB
Bash
27 lines
1.0 KiB
Bash
#!/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
|