feat: install systemd user services to /etc/systemd/user/
Build and publish packages / build-and-publish (push) Successful in 8s
Build and publish packages / build-and-publish (push) Successful in 8s
- PKGBUILD installs services directly to /etc/systemd/user/ and creates WantedBy symlinks (no manual systemctl --user enable needed) - Install hook cleans up legacy user-level service files from ~/.config/systemd/user/
This commit is contained in:
+11
-1
@@ -180,11 +180,21 @@ package() {
|
||||
install -Dm644 defaults/etc/moongreet/moongreet.toml \
|
||||
"$pkgdir/usr/share/moonarch/moongreet/moongreet.toml"
|
||||
|
||||
# --- Systemd user services -> /etc/systemd/user/ ---
|
||||
install -Dm644 defaults/etc/systemd/user/*.service -t "$pkgdir/etc/systemd/user/"
|
||||
|
||||
# Enable services by creating the WantedBy symlinks directly
|
||||
install -dm755 "$pkgdir/etc/systemd/user/graphical-session.target.wants"
|
||||
for svc in defaults/etc/systemd/user/*.service; do
|
||||
ln -sf "../$(basename "$svc")" \
|
||||
"$pkgdir/etc/systemd/user/graphical-session.target.wants/$(basename "$svc")"
|
||||
done
|
||||
|
||||
# --- User config templates (for post-install.sh / transform.sh) ---
|
||||
while IFS= read -r -d '' file; do
|
||||
local _rel="${file#defaults/user/}"
|
||||
install -Dm644 "$file" "$pkgdir/usr/share/moonarch/user-defaults/$_rel"
|
||||
done < <(find defaults/user -type f -print0)
|
||||
done < <(find defaults/user -type f -print0 2>/dev/null || true)
|
||||
}
|
||||
|
||||
backup=(
|
||||
|
||||
Reference in New Issue
Block a user