A port of CoreDesktop's configure to Pop!_OS 24.04 with COSMIC, in the shape of connector-macos: its own install.sh, update and configure, installed in ~/.local/share/federated-connector/connector. Every configure item is ported: the Core (email, calendars and contacts through GNOME Online Accounts and Evolution, as COSMIC has no accounts of its own; Superpanel; files over davfs2; Element; Tally; the email watcher), Tailscale, backups, AI agents in the sandbox and their sign-ins, languages with mise, AI servers, printers, network storage and the agent sandbox. Folders go in the COSMIC Files sidebar. Each item installs what it needs from apt, Flathub or the tool's own apt repository when you set it up. smoketest/run checks it in Ubuntu 24.04 containers with Docker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
1.1 KiB
Bash
Executable File
28 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Purpose : Run a command in a new terminal window, for notifications that
|
|
# start something when clicked (system/email-watch).
|
|
#
|
|
# run-in-terminal <command>, e.g. run-in-terminal "configure core"
|
|
#
|
|
# bash -i reads ~/.bashrc, as if you had typed the command yourself, and the
|
|
# window stays open to show how it went.
|
|
|
|
run=(bash -ic "$1; echo; read -rp \"Press Enter to close this window.\"")
|
|
if command -v cosmic-term &> /dev/null; then
|
|
terminal=(cosmic-term -e)
|
|
elif command -v xdg-terminal-exec &> /dev/null; then
|
|
terminal=(xdg-terminal-exec)
|
|
elif command -v gnome-terminal &> /dev/null; then
|
|
terminal=(gnome-terminal --)
|
|
elif command -v x-terminal-emulator &> /dev/null; then
|
|
terminal=(x-terminal-emulator -e)
|
|
else
|
|
notify-send --app-name="Federated Connector" "No terminal found" "Open a terminal and run $1."
|
|
exit 1
|
|
fi
|
|
|
|
# Run the terminal as its own unit: when the service that called this exits,
|
|
# systemd stops everything still running in it, which would close the terminal
|
|
exec systemd-run --user --quiet --collect -- "${terminal[@]}" "${run[@]}"
|