jout de la détection du dossier desktop
This commit is contained in:
parent
ac42d4a12e
commit
d22ad318f5
@ -146,11 +146,11 @@ cp -f %{SOURCE7} %{buildroot}/usr/share/dist/desktop-files/default/
|
|||||||
/usr/share/dist/desktop-files/default/*
|
/usr/share/dist/desktop-files/default/*
|
||||||
|
|
||||||
%post
|
%post
|
||||||
#desktop()
|
desktop()
|
||||||
#{
|
{
|
||||||
# DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
|
DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
|
||||||
# DESKTOP=${DESKTOP##*}
|
DESKTOP=${DESKTOP##*}
|
||||||
#}
|
}
|
||||||
DESKTOP="Bureau"
|
DESKTOP="Bureau"
|
||||||
|
|
||||||
mv -f /tmp/journald.conf /etc/systemd/
|
mv -f /tmp/journald.conf /etc/systemd/
|
||||||
@ -166,7 +166,7 @@ if [ -z "`grep lalis /etc/ssh/sshd_config`" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Ajoute le fichier checklist.txt et test.desktop sur le bureau de l'utilisateur lalis
|
# 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
|
if ! [ -d "/home/lalis/$DESKTOP" ]; then
|
||||||
/usr/bin/mkdir "/home/lalis/$DESKTOP"
|
/usr/bin/mkdir "/home/lalis/$DESKTOP"
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ do
|
|||||||
getent passwd "$USER"
|
getent passwd "$USER"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
if [ -d $i ]; then
|
if [ -d $i ]; then
|
||||||
# desktop "/home/$i"
|
desktop "/home/$i"
|
||||||
if ! [ -d "$i/$DESKTOP" ]; then
|
if ! [ -d "$i/$DESKTOP" ]; then
|
||||||
su -c "mkdir $i/Bureau" - "$USER"
|
su -c "mkdir $i/Bureau" - "$USER"
|
||||||
echo "su -c mkdir $i/Bureau - $USER"
|
echo "su -c mkdir $i/Bureau - $USER"
|
||||||
|
Reference in New Issue
Block a user