#!/bin/bash

# omarchy:summary=Launch 1Password or start its installer when missing.

set -e

if omarchy-cmd-present 1password; then
  exec setsid uwsm-app -- 1password
else
  exec omarchy-launch-floating-terminal-with-presentation omarchy-install-service-1password
fi
