diff --git a/profile-manager.sh b/profile-manager.sh
index 20ede9b..f2e0023 100755
--- a/profile-manager.sh
+++ b/profile-manager.sh
@@ -6,7 +6,7 @@ W="--width=600"
H="--height=500"
ZenityPulsate () {
-zenity $W --window-icon=$HOME/.icons/borg.svg --progress --pulsate --auto-close
+zenity $W --window-icon=borg --progress --pulsate --auto-close
}
TestBorgRepo () {
@@ -66,17 +66,16 @@ Si vous ne chiffrez pas le dépôt, les données qu'il contient seront librement
"
if [ "$?" = "0" ];then
- borg init "$borg_repo" | ZenityPulsate
+ borg init --encryption=keyfile "$borg_repo" | ZenityPulsate
zenity $W --info --text "Un nouveau dépôt chiffré a été généré dans $borg_repo"
repo_status="chiffré"
elif [ "$?" = "1" ];then
- borg init --encryption none "$borg_repo" | ZenityPulsate
+ borg init --encryption=none "$borg_repo" | ZenityPulsate
zenity $W --info --text "Un nouveau dépôt en clair a été généré dans $borg_repo"
repo_status="non chiffré"
fi
borg_dir=$(zenity --title "Dossier à sauvegarder" --file-selection --directory)
-
profilename=$(zenity --entry --title "Nom de profil" --text "Nom de profil (pas d'espace ni caractères spéciaux)")
nomsauvegarde=$(echo "$profilename")