#!/bin/bash

# Launch a floating terminal with the Station logo presentation, then execute the command passed in, and finally end with the station-show-done presentation.
# Used by actions such as Update System.

cmd="$*"
exec setsid uwsm-app -- xdg-terminal-exec --app-id=org.station.terminal --title=Station -e bash -c "station-show-logo; $cmd; if (( \$? != 130 )); then station-show-done; fi"
