diff --git a/SPECS/task-lalis.spec b/SPECS/task-lalis.spec index 801a9ad..3c88a26 100755 --- a/SPECS/task-lalis.spec +++ b/SPECS/task-lalis.spec @@ -146,11 +146,11 @@ cp -f %{SOURCE7} %{buildroot}/usr/share/dist/desktop-files/default/ /usr/share/dist/desktop-files/default/* %post -#desktop() -#{ -# DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs` -# DESKTOP=${DESKTOP##*} -#} +desktop() +{ + DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs` + DESKTOP=${DESKTOP##*} +} DESKTOP="Bureau" mv -f /tmp/journald.conf /etc/systemd/ @@ -166,7 +166,7 @@ if [ -z "`grep lalis /etc/ssh/sshd_config`" ]; then fi # Ajoute le fichier checklist.txt et test.desktop sur le bureau de l'utilisateur lalis -#desktop /home/lalis +desktop /home/lalis if ! [ -d "/home/lalis/$DESKTOP" ]; then /usr/bin/mkdir "/home/lalis/$DESKTOP" @@ -184,7 +184,7 @@ do getent passwd "$USER" if [ $? -eq 0 ]; then if [ -d $i ]; then -# desktop "/home/$i" + desktop "/home/$i" if ! [ -d "$i/$DESKTOP" ]; then su -c "mkdir $i/Bureau" - "$USER" echo "su -c mkdir $i/Bureau - $USER"