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>
22 lines
663 B
Bash
22 lines
663 B
Bash
#!/bin/bash
|
|
|
|
# configure reads TITLE and DESCRIPTION
|
|
# shellcheck disable=SC2034
|
|
TITLE="Printers"
|
|
# shellcheck disable=SC2034
|
|
DESCRIPTION="Add your network's printers to every print dialog"
|
|
|
|
# Exists once you've run this, even if you added none, so this isn't "to do"
|
|
# on machines without a printer
|
|
PRINTERS_CONF="$CONF_DIR/printers"
|
|
|
|
# Set up here, or a network printer was already added some other way
|
|
is_configured() {
|
|
[ -f "$PRINTERS_CONF" ] || LC_ALL=C lpstat -v 2> /dev/null | grep -qE ': (ipps?|dnssd)://'
|
|
}
|
|
|
|
run_configure() {
|
|
bash "$CONNECTOR/system/setup-printers.sh" || return 1
|
|
mkdir -p "$(dirname "$PRINTERS_CONF")" && touch "$PRINTERS_CONF"
|
|
}
|