From 16bd57f87159e299ad6d8460bfcc54666842146a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 24 Jun 2016 19:22:23 +0100 Subject: [PATCH] Terminal icon on mesh desktop --- src/freedombone-image-customise | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index a72551d8..c3c8a441 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -1099,8 +1099,24 @@ function mesh_client_startup_applications { echo 'X-GNOME-Autostart-enabled=true' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop 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" ln -s ~/.config/autostart/tox.desktop ~/Desktop/tox.desktop chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/.config + chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/Desktop +} + +function mesh_desktop_icons { + # qTox + chroot "$rootdir" ln -s ~/.config/autostart/tox.desktop ~/Desktop/tox.desktop + + # Terminal + echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'Name=MATE Terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'Comment=Use the command line' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'TryExec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'Exec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + + chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/Desktop } function configure_user_interface { @@ -1127,6 +1143,7 @@ function configure_user_interface { chroot "$rootdir" systemctl set-default multi-user.target mesh_client_startup_applications + mesh_desktop_icons # change the desktop background if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then