diff options
| author | Nippy <nippy@Beller-Mac-mini.lan> | 2026-09-07 19:37:34 +0200 |
|---|---|---|
| committer | Nippy <nippy@Beller-Mac-mini.lan> | 2026-09-07 19:39:31 +0200 |
| commit | a26fdf3ea630e82fdfc93fffcaef098e7c3fc0e9 (patch) | |
| tree | dea615142a03bc111c97b0b3a5385c93f1b8fc73 /raveos-gnome-theme/raveos-gnome-theme.install | |
| parent | 2b1073b57b09b61099f0e9f67dc13292f5672e35 (diff) | |
| download | RaveOS-PKGBUILD-a26fdf3ea630e82fdfc93fffcaef098e7c3fc0e9.tar.gz RaveOS-PKGBUILD-a26fdf3ea630e82fdfc93fffcaef098e7c3fc0e9.zip | |
rework theme
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 +} |