From 8f0c0484cb1c23b3be6a58e698d9f6493c5103a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Mon, 26 Dec 2016 22:14:16 +0100 Subject: Remove old desktop icons --- etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'etc/xdg') diff --git a/etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh b/etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh index 36f23fd..e0a3fdf 100644 --- a/etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh +++ b/etc/xdg/plasma-workspace/env/plasma5-firstsetup.sh @@ -110,6 +110,20 @@ EOF kwriteconfig5 --group "Mageia" --key "IconsXdgDir" --type "bool" 1 fi + # "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)" ) + HOME="$DIR/Home2.desktop" + TRASH="$DIR/trash.desktop" + if [ -e "$HOME"]; then + rm -f "$HOME" + fi + + if [ -e "$TRASH"]; then + rm -f "$TRASH" + fi + fi # end of main if: all the changes should be done inside this main if fi -- cgit v1.2.1