From 49fdb73ba1608eee4878b9a6276469bd67183235 Mon Sep 17 00:00:00 2001
From: Andri Joos <andri@joos.io>
Date: Fri, 13 Sep 2024 20:45:43 +0200
Subject: [PATCH] install flatseal

---
 install.sh           | 6 +++++-
 install_functions.sh | 6 ++++++
 options.sh           | 3 +++
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/install.sh b/install.sh
index 0c22e41..b244896 100644
--- a/install.sh
+++ b/install.sh
@@ -45,8 +45,9 @@ $element_desktop_key "$element_desktop_label" $element_desktop_enabled \
 $dconf_editor_key "$dconf_editor_label" $dconf_editor_enabled \
 $openssh_server_key "$openssh_server_label" $openssh_server_enabled \
 $openconnect_key "$openconnect_label" $openconnect_enabled \
-$swap_key "$swap_label" $swap_enabled \
 $protonvpn_key "$protonvpn_label" $protonvpn_enabled \
+$flatseal_key "$flatseal_label" $flatseal_enabled \
+$swap_key "$swap_label" $swap_enabled \
 3>&1 1>&2 2>&3)
 IFS=' ' read -a selected_options <<< $selected_tags
 
@@ -175,6 +176,9 @@ do
     elif [ $option = $protonvpn_key ]
     then
         install_protonvpn
+    elif [ $option = $flatseal_key ]
+    then
+        install_flatseal
     elif [ $option = $swap_key ]
     then
         setup_swap
diff --git a/install_functions.sh b/install_functions.sh
index 00159f6..3933d91 100644
--- a/install_functions.sh
+++ b/install_functions.sh
@@ -345,3 +345,9 @@ install_protonvpn() {
 
     make_autostart_entry proton-vpn "proton vpn" "protonvpn-app"
 }
+
+install_flatseal() {
+    flatpak_id="com.github.tchx84.Flatseal"
+
+    install_flatpak_app $flatpak_id
+}
diff --git a/options.sh b/options.sh
index cc4e2d4..4545dbb 100644
--- a/options.sh
+++ b/options.sh
@@ -43,6 +43,7 @@ dconf_editor_enabled=$checkbox_unchecked
 openssh_server_enabled=$checkbox_unchecked
 openconnect_enabled=$checkbox_unchecked
 protonvpn_enabled=$checkbox_unchecked
+flatseal_enabled=$checkbox_unchecked
 swap_enabled=$checkbox_unchecked
 
 # labels
@@ -86,6 +87,7 @@ dconf_editor_key="dconf_editor"
 openssh_server_key="openssh_server"
 openconnect_key="openconnect"
 protonvpn_key="proton_vpn"
+flatseal_key="flatseal"
 swap_key="swap"
 
 # show text
@@ -129,4 +131,5 @@ dconf_editor_label="dconf-editor"
 openssh_server_label="openssh-server"
 openconnect_label="openconnect"
 protonvpn_label="proton-vpn"
+flatseal_label="flatseal"
 swap_label="swap"
-- 
GitLab