summaryrefslogtreecommitdiff
path: root/raveos-plasma-theme/raveos-plasma-theme.install
blob: 9461d1682368520b506d8807be2f6be6f688564a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
_enable_apply_service() {
    if command -v systemctl >/dev/null 2>&1; then
        systemctl enable raveos-plasma-theme-apply.service >/dev/null 2>&1 || true
    fi
}

post_install() {
    _enable_apply_service
}

post_upgrade() {
    # Do not rewrite a live Plasma session from inside a pacman transaction.
    rm -f /var/lib/raveos-plasma-theme/.applied
    _enable_apply_service
}