How to have a `/etc/xdg/autostart/app.desktop` service wait for a systemd service?
qubes-whonix-firewall.service runs enable-firewall and conditionally creates the /var/run/qubes-service/whonix-secure-proxy status file.
/etc/xdg/autostart/qubes-whonixsetup.desktop runs /usr/lib/qubes-whonix/qubes-whonixsetup. Sometimes /etc/xdg/autostart/qubes-whonixsetup.desktop runs faster than qubes-whonix-firewall.service. The status file does not exist at that point, which results in an "This TemplateVM needs a Whonix-Gateway NetVM" error popup.
I would like to avoid some sleep/wait/custom code if there is an existing tool for such purposes.