Create mesh help icon

This commit is contained in:
Bob Mottram 2016-09-11 10:53:15 +01:00
parent 0a151163f5
commit fe0f874742
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 17 additions and 0 deletions

View File

@ -33,6 +33,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
# The browser application to use # The browser application to use
BROWSER=midori BROWSER=midori
BROWSER_OPTIONS='-p'
MY_USERNAME='fbone' MY_USERNAME='fbone'
PEER_ID= PEER_ID=
@ -516,6 +517,22 @@ function show_desktop_icons {
return return
fi fi
echo '#!/bin/bash' > /home/$MY_USERNAME/.showhelp
echo "pkill $BROWSER" >> /home/$MY_USERNAME/.showhelp
echo "$BROWSER $BROWSER_OPTIONS /home/$MY_USERNAME/help/mesh.html" >> /home/$MY_USERNAME/.showhelp
chmod +x /home/$MY_USERNAME/.showhelp
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.showhelp
echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/help.desktop
echo 'Version=1.0' >> /home/$MY_USERNAME/Desktop/help.desktop
echo 'Name=Help' >> /home/$MY_USERNAME/Desktop/help.desktop
echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/help.desktop
echo 'Comment=Show help' >> /home/$MY_USERNAME/Desktop/help.desktop
echo "Exec=bash -c /home/$MY_USERNAME/.showhelp" >> /home/$MY_USERNAME/Desktop/help.desktop
echo 'Icon=/usr/share/freedombone/avatars/help.png' >> /home/$MY_USERNAME/Desktop/help.desktop
echo 'Terminal=false' >> /home/$MY_USERNAME/Desktop/help.desktop
echo 'Categories=Application;' >> /home/$MY_USERNAME/Desktop/help.desktop
echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/wifi.desktop echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Version=1.0' >> /home/$MY_USERNAME/Desktop/wifi.desktop echo 'Version=1.0' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Name=Wifi' >> /home/$MY_USERNAME/Desktop/wifi.desktop echo 'Name=Wifi' >> /home/$MY_USERNAME/Desktop/wifi.desktop