_enable_apply_service() { local payload="/usr/share/raveos/cosmic-theme/theme-data" if [ -f "${payload}/background" ]; then install -Dm644 "${payload}/background" /usr/share/backgrounds/raveos/raveos-main-bg.jpeg 2>/dev/null || true fi if [ -f "${payload}/profile.d/raveos-fastfetch.sh" ]; then install -Dm755 "${payload}/profile.d/raveos-fastfetch.sh" /etc/profile.d/raveos-fastfetch.sh 2>/dev/null || true fi if command -v systemctl >/dev/null 2>&1; then systemctl enable raveos-cosmic-theme-apply.service >/dev/null 2>&1 || true fi } post_install() { _enable_apply_service } post_upgrade() { _enable_apply_service }