diff options
Diffstat (limited to 'raveos-plasma-theme/raveos-plasma-theme.install')
| -rw-r--r-- | raveos-plasma-theme/raveos-plasma-theme.install | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/raveos-plasma-theme/raveos-plasma-theme.install b/raveos-plasma-theme/raveos-plasma-theme.install index a61ed75..9461d16 100644 --- a/raveos-plasma-theme/raveos-plasma-theme.install +++ b/raveos-plasma-theme/raveos-plasma-theme.install @@ -1,11 +1,15 @@ -post_install() { - if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then - /usr/lib/raveos-plasma-theme/auto-apply.sh || true +_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() { - if [[ -x /usr/lib/raveos-plasma-theme/auto-apply.sh ]]; then - /usr/lib/raveos-plasma-theme/auto-apply.sh || true - fi + # Do not rewrite a live Plasma session from inside a pacman transaction. + rm -f /var/lib/raveos-plasma-theme/.applied + _enable_apply_service } |