diff options
Diffstat (limited to 'raveos-gnome-theme/raveos-gnome-theme.install')
| -rw-r--r-- | raveos-gnome-theme/raveos-gnome-theme.install | 21 |
1 files changed, 18 insertions, 3 deletions
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 +} |