## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

[Unit]
Description=Helper Service for /usr/bin/torbrowser to determine when it is save to Copy Tor Browser from /var/cache/tb-binary to user home by Whonix developers
Documentation=https://github.com/Whonix/tb-updater
ConditionPathExists=!/run/qubes/this-is-templatevm

After=local-fs.target

## Wait until eventual (if this is a DispVM) permission fix is done.
After=tb-updater-dispvm.service

## Preventing race condition with user start through start menu.
## Not the most efficient / clean solution.
## https://phabricator.whonix.org/T424
Before=qubes-gui-agent.service

## This service is intentionally a no-op ('/usr/bin/true'). Its purpose is to
## act as a synchronization point. Package 'tb-starter'
## can depend on it to ensure the DispVM permission fixup
## ('tb-updater-dispvm.service') has completed before the user session
## starts.
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/true

[Install]
WantedBy=multi-user.target
