From a26fdf3ea630e82fdfc93fffcaef098e7c3fc0e9 Mon Sep 17 00:00:00 2001 From: Nippy Date: Mon, 7 Sep 2026 19:37:34 +0200 Subject: rework theme --- raveos-gnome-theme/raveos-gnome-theme.install | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'raveos-gnome-theme/raveos-gnome-theme.install') diff --git a/raveos-gnome-theme/raveos-gnome-theme.install b/raveos-gnome-theme/raveos-gnome-theme.install index 58db3fe..a495ea5 100644 --- a/raveos-gnome-theme/raveos-gnome-theme.install +++ b/raveos-gnome-theme/raveos-gnome-theme.install @@ -1,3 +1,12 @@ +_update_system_configs() { + if command -v dconf >/dev/null 2>&1; then + dconf update >/dev/null 2>&1 || true + fi + if command -v glib-compile-schemas >/dev/null 2>&1; then + glib-compile-schemas /usr/share/glib-2.0/schemas >/dev/null 2>&1 || true + fi +} + _enable_apply_service() { if command -v systemctl >/dev/null 2>&1; then systemctl enable raveos-gnome-theme-apply.service >/dev/null 2>&1 || true @@ -5,12 +14,18 @@ _enable_apply_service() { } post_install() { + _update_system_configs _enable_apply_service } post_upgrade() { - # Never rewrite a live GNOME session from inside a pacman transaction. - # The boot service applies the new payload before the display manager starts. - rm -f /var/lib/raveos-gnome-theme/.applied + # Figyelem: post_upgrade esetén NEM töröljük a .applied fájlt, + # mert a rendszerszintű beállítások (00-raveos, gschema) automatikusan frissülnek, + # és nem akarjuk felülírni a meglévő felhasználók egyéni beállításait! + _update_system_configs _enable_apply_service } + +post_remove() { + _update_system_configs +} -- cgit v1.3