summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-05-09 15:11:24 +0200
committerNippy <nippy@rp1.hu>2026-05-09 15:11:24 +0200
commita0911609f98a0fadea26780a1ee527a7001cfec5 (patch)
tree8366d5294c2e5d519afadbceaae413d9d7312934 /raveos-hyprland-theme
parenta7ee10a3c9428aceb67684586e6d7dfe323a7970 (diff)
downloadRaveOS-PKGBUILD-a0911609f98a0fadea26780a1ee527a7001cfec5.tar.gz
RaveOS-PKGBUILD-a0911609f98a0fadea26780a1ee527a7001cfec5.zip
raveos update
Diffstat (limited to 'raveos-hyprland-theme')
-rw-r--r--raveos-hyprland-theme/PKGBUILD2
-rw-r--r--raveos-hyprland-theme/raveos-hyprland-apply.sh19
2 files changed, 13 insertions, 8 deletions
diff --git a/raveos-hyprland-theme/PKGBUILD b/raveos-hyprland-theme/PKGBUILD
index fa0aa00..0975e83 100644
--- a/raveos-hyprland-theme/PKGBUILD
+++ b/raveos-hyprland-theme/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=raveos-hyprland-theme
pkgver=0.0.0
-pkgrel=27
+pkgrel=28
pkgdesc="RaveOS Hyprland theme payload and installer (includes DankMaterialShell)"
arch=('any')
url="https://raveos.local"
diff --git a/raveos-hyprland-theme/raveos-hyprland-apply.sh b/raveos-hyprland-theme/raveos-hyprland-apply.sh
index c53b943..133713b 100644
--- a/raveos-hyprland-theme/raveos-hyprland-apply.sh
+++ b/raveos-hyprland-theme/raveos-hyprland-apply.sh
@@ -174,17 +174,22 @@ while IFS=: read -r user _ uid gid _ home shell; do
runuser -u "$user" -- xdg-user-dirs-update 2>/dev/null || true
dms_session="${home}/.local/state/DankMaterialShell/session.json"
- if [[ -f "$dms_session" ]]; then
- python3 -c "
-import json, sys
-with open('${dms_session}') as f:
- d = json.load(f)
+ mkdir -p "$(dirname "$dms_session")"
+ python3 -c "
+import json, os
+path = '${dms_session}'
+d = {}
+if os.path.isfile(path):
+ try:
+ with open(path) as f:
+ d = json.load(f)
+ except Exception:
+ d = {}
if not d.get('wallpaperPath'):
d['wallpaperPath'] = '/usr/share/raveos/hyprland-theme/theme-data/background.jpg'
- with open('${dms_session}', 'w') as f:
+ with open(path, 'w') as f:
json.dump(d, f, indent=2)
" 2>/dev/null || true
- fi
chown -R "${uid}:${gid}" "$home"