From 0230baa1f7e71641d30fcb3cd706c92abe71d141 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Mon, 24 Feb 2025 12:17:30 +0100 Subject: [PATCH] Feat: Setzt Path-Variablen. --- Setup/6_Polish.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Setup/6_Polish.sh b/Setup/6_Polish.sh index aff9303..53e2d08 100755 --- a/Setup/6_Polish.sh +++ b/Setup/6_Polish.sh @@ -14,6 +14,14 @@ sudo apt update && sudo apt install -y flatpak neovim # Flatpak Flathub-Repo hinzufügen sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo +# XDG_DATA_DIRS für Flatpak dauerhaft setzen +XDG_CONFIG_FILE="$HOME/.profile" +XDG_EXPORT="export XDG_DATA_DIRS=\"/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share:$XDG_DATA_DIRS\"" +if ! grep -Fxq "$XDG_EXPORT" "$XDG_CONFIG_FILE"; then + echo "$XDG_EXPORT" >> "$XDG_CONFIG_FILE" + echo "✅ XDG_DATA_DIRS dauerhaft in .profile gesetzt." +fi + # Firefox-Installation echo "🌍 Firefox wird installiert..." sudo install -d -m 0755 /etc/apt/keyrings