From 63738ece6ee5b22a3f8c1389aa9b38e005e0bbcc Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Fri, 27 May 2022 10:33:49 +0200 Subject: [PATCH] changing the way desktop files are created --- syncthing-install-auto.sh | 41 +++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/syncthing-install-auto.sh b/syncthing-install-auto.sh index c682323..3738e79 100644 --- a/syncthing-install-auto.sh +++ b/syncthing-install-auto.sh @@ -118,29 +118,32 @@ echo "Ajout des alias au bashrc réussi." sleep 5 # Installation des fichiers desktop -echo "[Desktop Entry]\n\ -Encoding=UTF-8\n\ -Name=Syncthing\n\ -Icon=syncthing\n\ -Comment="Outil de synchronisation sécurisé sans serveur central"\n\ -Exec=bin/syncthing/syncthing\n\ -Terminal=false\n\ -Type=Application\n\ -" >> $HOME/.config/autostart/syncthing-autostart.desktop +cat << "EOF" > $HOME/.config/autostart/syncthing-autostart.desktop +[Desktop Entry] +Encoding=UTF-8 +Name=Syncthing +Icon=syncthing +Comment="Outil de synchronisation sécurisé sans serveur central" +Exec=bin/syncthing/syncthing +Terminal=false +Type=Application +EOF + fonct_ArretSurErreur echo "Ajout du lien de démmarrage automatique réussi." sleep 5 -echo "[Desktop Entry]\n\ -Encoding=UTF-8\n\ -Name=Syncthing (Interface Web)\n\ -Icon=syncthing\n\ -Comment=\"Ouvrir l'interface web de Syncthing\"\n\ -Exec=firefox --new-tab 127.0.0.1:8384\n\ -Terminal=false\n\ -Type=Application\n\ -Categories=Network;\n\ -" >> $HOME/.local/share/applications/syncthing-wui.desktop +cat << "EOF" > $HOME/.local/share/applications/syncthing-wui.desktop +[Desktop Entry] +Encoding=UTF-8 +Name=Syncthing (Interface Web) +Icon=syncthing +Comment="Ouvrir l'interface web de Syncthing" +Exec=firefox --new-tab 127.0.0.1:8384 +Terminal=false +Type=Application +Categories=Network; +EOF fonct_ArretSurErreur echo "Ajout du raccourcis vers l'interface web réussi." echo "Vous le trouverez dans le menu principal"