From c86dcf4fad8918a03ea4dc311d228889adfffbdc Mon Sep 17 00:00:00 2001 From: nippy Date: Mon, 10 Aug 2026 16:17:45 +0200 Subject: theme fix --- raveos-plasma-theme/raveos-plasma-theme.install | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'raveos-plasma-theme/raveos-plasma-theme.install') 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 } -- cgit v1.3