Bootstrap : Flatpak also installs packages now.

This commit is contained in:
Dmitry Voronin 2024-01-28 00:50:22 +03:00
parent b8b53a259d
commit 4cfc469a97

View file

@ -55,6 +55,21 @@ trim_trailing_whitespace = true
" > .editorconfig " > .editorconfig
} }
function bootstrap_flathub() { # Setup all the flatpak apps on the machine.
flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo function bootstrap_flatpak() {
# Add Flathub repo.
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# Reinstall apps.
local IFS=$'\n'
local targets="$(cat ~/.config/linux/Flatpak.txt)"
process() {
local packet="${target#*$'\t'}"
packet="${packet%%$'\t'*}"
flatpak install "${packet}"
}
_iterate_targets process ${targets[@]}
} }