瀏覽代碼

Create desktop directory

Bob Mottram 8 年之前
父節點
當前提交
ee2b4ee261
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      src/freedombone-image-customise

+ 4
- 1
src/freedombone-image-customise 查看文件

1100
 	echo 'Name=Tox Chat' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
1100
 	echo 'Name=Tox Chat' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
1101
 	echo 'Comment=Peer to peer encrypted communications' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
1101
 	echo 'Comment=Peer to peer encrypted communications' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
1102
 	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
1102
 	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
1103
-	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop
1104
 }
1103
 }
1105
 
1104
 
1106
 function mesh_desktop_icons {
1105
 function mesh_desktop_icons {
1107
 	# qTox
1106
 	# qTox
1108
 	chroot "$rootdir" ln -s /home/$MY_USERNAME/.config/autostart/tox.desktop /home/$MY_USERNAME/Desktop/tox.desktop
1107
 	chroot "$rootdir" ln -s /home/$MY_USERNAME/.config/autostart/tox.desktop /home/$MY_USERNAME/Desktop/tox.desktop
1109
 
1108
 
1109
+	if [ ! -d $rootdir/home/$MY_USERNAME/Desktop ]; then
1110
+		mkdir -p $rootdir/home/$MY_USERNAME/Desktop
1111
+	fi
1112
+
1110
 	# Terminal
1113
 	# Terminal
1111
 	echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1114
 	echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1112
 	echo 'Name=MATE Terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1115
 	echo 'Name=MATE Terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop