Add syncthing icon and folder to the mesh desktop

This commit is contained in:
Bob Mottram 2016-08-05 23:49:59 +01:00
parent 135c233962
commit 58644d4976
2 changed files with 14 additions and 1 deletions

View File

@ -705,6 +705,11 @@ function configure_user_interface {
# Syncthing
install_syncthing
# Add a Sync folder to the desktop
mkdir ${rootdir}/home/${MY_USERNAME}/Sync
chroot "$rootdir" chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/Sync
chroot "$rootdir" ln -s /home/${MY_USERNAME}/Sync /home/${MY_USERNAME}/Desktop/Sync
if [[ $VARIANT == "usb" ]]; then
# tor
chroot "$rootdir" apt-get -y install tor

View File

@ -500,6 +500,14 @@ function show_desktop_icons {
echo "Icon=$BROWSER" >> /home/$MY_USERNAME/Desktop/users.desktop
echo 'StartupNotify=true' >> /home/$MY_USERNAME/Desktop/users.desktop
echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/syncthing.desktop
echo 'Name=Syncthing' >> /home/$MY_USERNAME/Desktop/syncthing.desktop
echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/syncthing.desktop
echo 'Comment=Setup File Synchronisation' >> /home/$MY_USERNAME/Desktop/syncthing.desktop
echo "Exec=$BROWSER http://127.0.0.1:8384" >> /home/$MY_USERNAME/Desktop/syncthing.desktop
echo "Icon=$BROWSER" >> /home/$MY_USERNAME/Desktop/syncthing.desktop
echo 'StartupNotify=true' >> /home/$MY_USERNAME/Desktop/syncthing.desktop
#echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/mesh.desktop
#echo 'Name=Mesh' >> /home/$MY_USERNAME/Desktop/mesh.desktop
#echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/mesh.desktop
@ -812,7 +820,7 @@ if [ -f $MESH_INSTALL_SETUP ]; then
if [ ! -f $MESH_INSTALL_COMPLETED ]; then
echo $'Mesh node setup complete' >> $INSTALL_LOG
touch $MESH_INSTALL_COMPLETED
reboot
reboot
fi
fi