mirror of
https://github.com/andwati/dotfiles.git
synced 2026-12-05 16:58:49 +00:00
Switch Slack to Flathub instead of the packagecloud apt repo
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.
This commit is contained in:
@@ -127,11 +127,7 @@ fi
|
||||
|
||||
if [[ ${#unmapped[@]} -gt 0 ]]; then
|
||||
warn "no apt equivalent known for: ${unmapped[*]} — setting up Flatpak/Flathub so you can still get them"
|
||||
apt_install flatpak
|
||||
if has_cmd gnome-shell; then
|
||||
apt_install gnome-software-plugin-flatpak
|
||||
fi
|
||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
ensure_flatpak
|
||||
warn "search/install with: flatpak search <name> && flatpak install flathub <app-id>"
|
||||
for s in "${unmapped[@]}"; do
|
||||
warn " - $s"
|
||||
|
||||
Reference in New Issue
Block a user