summaryrefslogtreecommitdiff
path: root/raveos-gnome-theme/raveos-gnome-theme.install
blob: a495ea5ecb115eeb9108f14627652cab410150d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
_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
    fi
}

post_install() {
    _update_system_configs
    _enable_apply_service
}

post_upgrade() {
    # 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
}