From 69e54a72c47189eaa07e27c020ff23c9caf06379 Mon Sep 17 00:00:00 2001 From: Nippy Date: Mon, 22 Jun 2026 11:15:06 +0200 Subject: gnome cosmic plasma sddm update --- raveos-plasma-theme/raveos-plasma-theme.install | 31 ++++++++++++++++++++----- 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'raveos-plasma-theme/raveos-plasma-theme.install') diff --git a/raveos-plasma-theme/raveos-plasma-theme.install b/raveos-plasma-theme/raveos-plasma-theme.install index bdbf8eb..9cf2f8d 100644 --- a/raveos-plasma-theme/raveos-plasma-theme.install +++ b/raveos-plasma-theme/raveos-plasma-theme.install @@ -1,11 +1,30 @@ +_sddm_src="/usr/share/raveos/plasma-theme/theme-data/sddm/sddm.conf" +_sddm_dst="/etc/sddm.conf.d/raveos-theme.conf" + +pre_install() { + rm -f "$_sddm_dst" +} + +pre_upgrade() { + rm -f "$_sddm_dst" +} + post_install() { - if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then - /usr/lib/raveos-plasma-theme/auto-apply.sh || true - fi + mkdir -p /etc/sddm.conf.d + install -Dm644 "$_sddm_src" "$_sddm_dst" + if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then + /usr/lib/raveos-plasma-theme/auto-apply.sh || true + fi } post_upgrade() { - if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then - /usr/lib/raveos-plasma-theme/auto-apply.sh || true - fi + mkdir -p /etc/sddm.conf.d + install -Dm644 "$_sddm_src" "$_sddm_dst" + if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then + /usr/lib/raveos-plasma-theme/auto-apply.sh || true + fi +} + +post_remove() { + rm -f "$_sddm_dst" } -- cgit v1.3