diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index a1acfea4..c20d641f 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -575,7 +575,7 @@ function mesh_client_startup_applications { mkdir -p $rootdir/home/$MY_USERNAME/.config/autostart fi - START_DESKTOP=$rootdir/home/$MY_USERNAME/.config/autostart/mesh-desktop + START_DESKTOP=$rootdir/home/$MY_USERNAME/mesh-desktop.sh echo '#!/bin/bash' > $START_DESKTOP echo 'dconf write /org/mate/caja/desktop/volumes-visible false' >> $START_DESKTOP echo 'dconf write /org/mate/caja/desktop/computer-icon-visible false' >> $START_DESKTOP @@ -586,7 +586,15 @@ function mesh_client_startup_applications { echo 'dconf write /org/mate/desktop/media-handling/automount-open false' >> $START_DESKTOP echo 'dconf write /org/mate/desktop/screensaver/lock-enabled false' >> $START_DESKTOP chmod +x $START_DESKTOP + chroot "$rootdir" chown $MY_USERNAME:$MY_USERNAME $START_DESKTOP + START_DESKTOP2=$rootdir/home/$MY_USERNAME/.config/autostart/mesh-start.desktop + echo '[Desktop Entry]' > $START_DESKTOP2 + echo 'Type=Application' >> $START_DESKTOP2 + echo 'Name=Mesh start desktop script' >> $START_DESKTOP2 + echo "Exec=bash -c '~/mesh-desktop.sh'" >> $START_DESKTOP2 + echo 'X-GNOME-Autostart-enabled=true' >> $START_DESKTOP2 + chmod +x $START_DESKTOP2 chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config }