From ee2b4ee26119f6b1484cd8020724cea0378a0866 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 24 Jun 2016 21:13:02 +0100 Subject: [PATCH] Create desktop directory --- src/freedombone-image-customise | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index a615cc88..1d159a3b 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -1100,13 +1100,16 @@ function mesh_client_startup_applications { echo 'Name=Tox Chat' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop echo 'Comment=Peer to peer encrypted communications' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config - chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop } function mesh_desktop_icons { # qTox chroot "$rootdir" ln -s /home/$MY_USERNAME/.config/autostart/tox.desktop /home/$MY_USERNAME/Desktop/tox.desktop + if [ ! -d $rootdir/home/$MY_USERNAME/Desktop ]; then + mkdir -p $rootdir/home/$MY_USERNAME/Desktop + fi + # Terminal echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop echo 'Name=MATE Terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop