We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 654a735 commit 97fab17Copy full SHA for 97fab17
system_files/desktop/shared/usr/bin/ublue-flatpak-system-install
@@ -1,6 +1,13 @@
1
#!/usr/bin/env bash
2
source /etc/default/bazzite
3
4
+FLATPAK_INSTALLED_CONDITION_CHECK="/etc/bazzite/sys_flatpak_configured"
5
+
6
+if [[ -f "$FLATPAK_INSTALLED_CONDITION_CHECK" ]] ; then
7
+ printf "System flatpaks are already installed (%s)" "$FLATPAK_INSTALLED_CONDITION_CHECK"
8
+ exit 0
9
+fi
10
11
if grep -qz 'fedora' <<< $(flatpak remotes); then
12
/usr/lib/fedora-third-party/fedora-third-party-opt-out
13
/usr/bin/fedora-third-party disable
@@ -29,3 +36,5 @@ if [[ -f '/etc/flatpak/deck' ]]; then
29
36
fi
30
37
31
38
rm -rf /etc/flatpak/{deck,flathub,objects}
39
+mkdir /etc/bazzite
40
+touch "$FLATPAK_INSTALLED_CONDITION_CHECK"
0 commit comments