Compare commits
No commits in common. "31cab37f43c26395794794cd9c7baf9b36cb8070" and "7b2b7ef109b10001b74938930f192ac8525df343" have entirely different histories.
31cab37f43
...
7b2b7ef109
@ -23,6 +23,7 @@ fi'
|
||||
|
||||
# Saubere Lösung über /etc/profile.d/
|
||||
echo "$CONFIG_BLOCK" > /etc/profile.d/custom_path.sh
|
||||
chmod +x /etc/profile.d/custom_path.sh
|
||||
|
||||
# Sudo-Hinweis für bash.bashrc
|
||||
SUDO_HINT_BLOCK='# sudo hint
|
||||
|
||||
@ -14,6 +14,38 @@ 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 setzen in /etc/profile.d/flatpak_env.sh
|
||||
sudo tee /etc/profile.d/flatpak.sh > /dev/null << 'EOF'
|
||||
if command -v flatpak > /dev/null; then
|
||||
new_dirs=$(
|
||||
(
|
||||
unset G_MESSAGES_DEBUG
|
||||
echo "${XDG_DATA_HOME:-"$HOME/.local/share"}/flatpak"
|
||||
GIO_USE_VFS=local flatpak --installations
|
||||
) | (
|
||||
new_dirs=
|
||||
while read -r install_path
|
||||
do
|
||||
share_path=$install_path/exports/share
|
||||
case ":$XDG_DATA_DIRS:" in
|
||||
(*":$share_path:"*) :;;
|
||||
(*":$share_path/:"*) :;;
|
||||
(*) new_dirs=${new_dirs:+${new_dirs}:}$share_path;;
|
||||
esac
|
||||
done
|
||||
echo "$new_dirs"
|
||||
)
|
||||
)
|
||||
|
||||
export XDG_DATA_DIRS
|
||||
XDG_DATA_DIRS="${new_dirs:+${new_dirs}:}${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
|
||||
|
||||
unset new_dirs
|
||||
fi
|
||||
EOF
|
||||
|
||||
sudo chmod +x /etc/profile.d/flatpak.sh
|
||||
|
||||
# Firefox-Installation
|
||||
echo "🌍 Firefox wird installiert..."
|
||||
sudo install -d -m 0755 /etc/apt/keyrings
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user