Browse Source

Mesh client browser icon

Bob Mottram 8 years ago
parent
commit
2fb249e6ef
1 changed files with 15 additions and 1 deletions
  1. 15
    1
      src/freedombone-image-customise

+ 15
- 1
src/freedombone-image-customise View File

97
 # optional desktop background image for mesh
97
 # optional desktop background image for mesh
98
 MESH_DESKTOP_BACKGROUND_IMAGE=/usr/local/share/${PROJECT_NAME}_mesh_background.png
98
 MESH_DESKTOP_BACKGROUND_IMAGE=/usr/local/share/${PROJECT_NAME}_mesh_background.png
99
 
99
 
100
+# The browser application to use
101
+BROWSER=iceweasel
102
+
100
 enable_eatmydata_override() {
103
 enable_eatmydata_override() {
101
 	chroot $rootdir apt-get install --no-install-recommends -y eatmydata
104
 	chroot $rootdir apt-get install --no-install-recommends -y eatmydata
102
 	if [ -x $rootdir/usr/bin/eatmydata ] && \
105
 	if [ -x $rootdir/usr/bin/eatmydata ] && \
1121
 	echo 'Icon=terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1124
 	echo 'Icon=terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1122
 	echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1125
 	echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1123
 
1126
 
1127
+	# Terminal
1128
+	echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1129
+	echo 'Name=Mesh' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1130
+	echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1131
+	echo 'Comment=Browse the mesh' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1132
+	# browse
1133
+	echo 'TryExec=meshweb' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1134
+	echo 'Exec=meshweb' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1135
+	echo "Icon=$BROWSER" >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1136
+	echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1137
+
1124
 	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop
1138
 	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop
1125
 }
1139
 }
1126
 
1140
 
1168
 	fi
1182
 	fi
1169
 
1183
 
1170
 	# browser
1184
 	# browser
1171
-	chroot "$rootdir" apt-get -y install iceweasel
1185
+	chroot "$rootdir" apt-get -y install $BROWSER
1172
 
1186
 
1173
 	# NOTE: The Tox repo only supports a limited range of architectures
1187
 	# NOTE: The Tox repo only supports a limited range of architectures
1174
 	if [[ $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'i386' ]]; then
1188
 	if [[ $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'i386' ]]; then