Mesh client browser icon

This commit is contained in:
Bob Mottram 2016-06-25 13:08:31 +01:00
parent a440fc4acd
commit 2fb249e6ef
1 changed files with 15 additions and 1 deletions

View File

@ -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