#!/usr/bin/sh
# Start the per-user hub through systemd when available, then open the receiver.
if command -v systemctl >/dev/null 2>&1; then
    systemctl --user daemon-reload >/dev/null 2>&1 || true
    systemctl --user start generalshare-hub.service >/dev/null 2>&1 || true
fi
exec /usr/bin/generalshare-receiver
