summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2016-12-26 23:44:29 +0100
committerNicolas Lécureuil <neoclust@mageia.org>2016-12-26 23:44:29 +0100
commitc35fd78f33cf8c9515be14386bf4686b389e0ba7 (patch)
tree999ea0c8be0ffff39119edbb36b9726e7a252946
parent588d5574a758b8eee4379a3c8d0f10edce916c51 (diff)
downloadconfig-c35fd78f33cf8c9515be14386bf4686b389e0ba7.tar
config-c35fd78f33cf8c9515be14386bf4686b389e0ba7.tar.gz
config-c35fd78f33cf8c9515be14386bf4686b389e0ba7.tar.bz2
config-c35fd78f33cf8c9515be14386bf4686b389e0ba7.tar.xz
config-c35fd78f33cf8c9515be14386bf4686b389e0ba7.zip
Fix typo in var name
-rw-r--r--etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh b/etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh
index 87f5b65..372fe76 100644
--- a/etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh
+++ b/etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh
@@ -113,14 +113,14 @@ EOF
# "Desktop" Mageia icons"
MGA5to6=$(kreadconfig5 --group "Mageia" --key "Mageia5to6" --default "false")
if [ ! "$MGA5to6" = "true" ]; then
- DIR=$(eval "echo $(kreadconfig5 --file $HOME/.config/user-dirs.dirs --key XDG_DESKTOP_DIR --group "" )" )
- HOME="$DIR/Home2.desktop"
- TRASH="$DIR/trash.desktop"
- if [ -e "$HOME"]; then
+ DIRDESKTOP=$(eval "echo $(kreadconfig5 --file $HOME/.config/user-dirs.dirs --key XDG_DESKTOP_DIR --group "" )" )
+ HOME="$DIRDESKTOP/Home2.desktop"
+ TRASH="$DIRDESKTOP/trash.desktop"
+ if [ -e "$HOME" ]; then
rm -f "$HOME"
fi
- if [ -e "$TRASH"]; then
+ if [ -e "$TRASH" ]; then
rm -f "$TRASH"
fi