diff --git a/install.sh b/install.sh index 68e68a9..920455d 100755 --- a/install.sh +++ b/install.sh @@ -304,6 +304,9 @@ bash ~/.local/share/coredesktop/system/hardware.sh echo "Configuring the shell..." bash ~/.local/share/coredesktop/shell/setup.sh +# The CoreDesktop logo on GNOME's login screen, not Arch's +bash ~/.local/share/coredesktop/system/login-logo.sh + # Keep WinBoat's Windows container from starting at boot (if it's set up) bash ~/.local/share/coredesktop/system/winboat.sh diff --git a/migrations/1795786076.sh b/migrations/1795786076.sh new file mode 100644 index 0000000..e07708f --- /dev/null +++ b/migrations/1795786076.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Show the CoreDesktop logo on GNOME's login screen in place of the Arch logo, +# as system/login-logo.sh now does on a new install. +bash "$HOME/.local/share/coredesktop/system/login-logo.sh" diff --git a/system/coredesktop-logo.svg b/system/coredesktop-logo.svg new file mode 100644 index 0000000..645d721 --- /dev/null +++ b/system/coredesktop-logo.svg @@ -0,0 +1,18 @@ + + CoreDesktop + + + + + + + + + + + + + + + + diff --git a/system/login-logo.sh b/system/login-logo.sh new file mode 100644 index 0000000..74d7b46 --- /dev/null +++ b/system/login-logo.sh @@ -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