.linx-env v1

This commit is contained in:
valere
2025-10-07 09:34:46 +02:00
parent a356f4c003
commit 323af82393
6 changed files with 92 additions and 51 deletions

View File

@@ -1,10 +1,16 @@
# desktop apps
cp ./applications/*/*.desktop ~/.local/share/applications/
cp ./applications/*/*.sh ~/.local/bin/
cp ./applications/*/*.svg ~/.local/share/icons/
#!/bin/bash
set -e
chmod +x ~/.local/share/applications/*.desktop
chmod +x ~/.local/bin/*.sh
# Chemin de base : le dossier où se trouve ce script
BASE_DIR="$(dirname "$(realpath "$0")")"
update-desktop-database ~/.local/share/applications/
# gtk-update-icon-cache ~/.local/share/icons/ # inutile sauf si tu fais un vrai thème d'icônes
echo "[+] Recherche et exécution des install.sh..."
# Boucle récursive sur tous les fichiers install.sh
find "$BASE_DIR" -type f -name "install.sh" ! -path "$BASE_DIR/install.sh" | while read -r script; do
echo "[+] Lancement : $script"
chmod +x "$script"
"$script"
done
echo "[✓] Tous les install.sh ont été exécutés."