diff --git a/install/user/first-run/install-voxtype.hook b/install/user/first-run/install-voxtype.hook index 63d025a0..14c556f9 100644 --- a/install/user/first-run/install-voxtype.hook +++ b/install/user/first-run/install-voxtype.hook @@ -4,7 +4,13 @@ set -e show_invitation() { if [[ -n $(omarchy-notification-send -u critical -g  "Install Dictation with Voxtype" "Click to install voice dictation for Omarchy." -a) ]]; then - omarchy-launch-floating-terminal-with-presentation omarchy-voxtype-install + # Launch the installer in its own transient unit so this invitation service + # can exit right after the click. If it stayed alive for the life of the + # install terminal, the installer's omarchy-restart-shell would re-trigger + # this still-running *-invitation unit and pop the toast a second time. + systemd-run --user --collect --quiet \ + --unit=omarchy-voxtype-install \ + omarchy-launch-floating-terminal-with-presentation omarchy-voxtype-install fi } diff --git a/install/user/first-run/setup-fingerprint.hook b/install/user/first-run/setup-fingerprint.hook index 5f75ee66..4ef1ba47 100644 --- a/install/user/first-run/setup-fingerprint.hook +++ b/install/user/first-run/setup-fingerprint.hook @@ -4,7 +4,13 @@ set -e show_invitation() { if [[ -n $(omarchy-notification-send -u critical -g 󰈷 "Setup Fingerprint Reader" "Enable sudo and unlocking with your fingerprint." -a) ]]; then - omarchy-launch-floating-terminal-with-presentation omarchy-setup-security-fingerprint + # Launch the setup in its own transient unit so this invitation service can + # exit right after the click. If it stayed alive for the life of the setup + # terminal, the setup's omarchy-restart-shell would re-trigger this + # still-running *-invitation unit and pop the toast a second time. + systemd-run --user --collect --quiet \ + --unit=omarchy-setup-security-fingerprint \ + omarchy-launch-floating-terminal-with-presentation omarchy-setup-security-fingerprint fi }