#!/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