Compare commits
2 Commits
7b2b7ef109
...
31cab37f43
| Author | SHA1 | Date | |
|---|---|---|---|
| 31cab37f43 | |||
| 860f40c5e8 |
@ -23,7 +23,6 @@ fi'
|
|||||||
|
|
||||||
# Saubere Lösung über /etc/profile.d/
|
# Saubere Lösung über /etc/profile.d/
|
||||||
echo "$CONFIG_BLOCK" > /etc/profile.d/custom_path.sh
|
echo "$CONFIG_BLOCK" > /etc/profile.d/custom_path.sh
|
||||||
chmod +x /etc/profile.d/custom_path.sh
|
|
||||||
|
|
||||||
# Sudo-Hinweis für bash.bashrc
|
# Sudo-Hinweis für bash.bashrc
|
||||||
SUDO_HINT_BLOCK='# sudo hint
|
SUDO_HINT_BLOCK='# sudo hint
|
||||||
|
|||||||
@ -14,38 +14,6 @@ sudo apt update && sudo apt install -y flatpak neovim
|
|||||||
# Flatpak Flathub-Repo hinzufügen
|
# Flatpak Flathub-Repo hinzufügen
|
||||||
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
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
|
# Firefox-Installation
|
||||||
echo "🌍 Firefox wird installiert..."
|
echo "🌍 Firefox wird installiert..."
|
||||||
sudo install -d -m 0755 /etc/apt/keyrings
|
sudo install -d -m 0755 /etc/apt/keyrings
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user