mirror of
https://github.com/andwati/dotfiles.git
synced 2026-10-18 11:02:53 +00:00
Adds a shared ensure_flatpak helper in lib.sh (installs flatpak + adds the Flathub remote) and reuses it from both the slack module and desnap.sh's unmapped-snap fallback instead of duplicating the setup.
11 lines
265 B
Bash
11 lines
265 B
Bash
install_slack() {
|
|
if flatpak list --app 2>/dev/null | grep -q com.slack.Slack; then
|
|
ok "slack already installed"
|
|
return
|
|
fi
|
|
|
|
ensure_flatpak
|
|
sudo flatpak install -y flathub com.slack.Slack
|
|
rollback_push "sudo flatpak uninstall -y com.slack.Slack"
|
|
}
|