From 2fb249e6ef039071591cfa450f94a8d4b0487b50 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 25 Jun 2016 13:08:31 +0100 Subject: [PATCH] Mesh client browser icon --- src/freedombone-image-customise | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index a8bc5007..09e0d8bd 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -97,6 +97,9 @@ INSECURE='no' # optional desktop background image for mesh MESH_DESKTOP_BACKGROUND_IMAGE=/usr/local/share/${PROJECT_NAME}_mesh_background.png +# The browser application to use +BROWSER=iceweasel + enable_eatmydata_override() { chroot $rootdir apt-get install --no-install-recommends -y eatmydata if [ -x $rootdir/usr/bin/eatmydata ] && \ @@ -1121,6 +1124,17 @@ function mesh_desktop_icons { echo 'Icon=terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + # Terminal + echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'Name=Mesh' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'Comment=Browse the mesh' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + # browse + echo 'TryExec=meshweb' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo 'Exec=meshweb' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop + echo "Icon=$BROWSER" >> $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 /home/$MY_USERNAME/Desktop } @@ -1168,7 +1182,7 @@ function configure_user_interface { fi # browser - chroot "$rootdir" apt-get -y install iceweasel + chroot "$rootdir" apt-get -y install $BROWSER # NOTE: The Tox repo only supports a limited range of architectures if [[ $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'i386' ]]; then