summaryrefslogtreecommitdiff
path: root/raveos-plasma-theme/raveos-plasma-theme.install
diff options
context:
space:
mode:
authornippy <nippy@tuta.io>2026-08-10 16:17:45 +0200
committernippy <nippy@tuta.io>2026-08-10 16:17:45 +0200
commitc86dcf4fad8918a03ea4dc311d228889adfffbdc (patch)
treea35e229b6875cb93977c44b12b6a34831356e68e /raveos-plasma-theme/raveos-plasma-theme.install
parent31d0ac0a1b53502d5fba6db85d0a33723496a0f3 (diff)
downloadRaveOS-PKGBUILD-c86dcf4fad8918a03ea4dc311d228889adfffbdc.tar.gz
RaveOS-PKGBUILD-c86dcf4fad8918a03ea4dc311d228889adfffbdc.zip
theme fix
Diffstat (limited to 'raveos-plasma-theme/raveos-plasma-theme.install')
-rw-r--r--raveos-plasma-theme/raveos-plasma-theme.install16
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
}