Add initial mesh desktop icons which can be used offline

This commit is contained in:
Bob Mottram 2017-10-01 15:58:35 +01:00
parent b46faa6b51
commit 399af60ccc
1 changed files with 24 additions and 0 deletions

View File

@ -600,6 +600,18 @@ EOF
# Copy icon to an accesible location # Copy icon to an accesible location
cp $rootdir/root/$PROJECT_NAME/img/icon_patchwork.png $rootdir/etc/patchwork/icon_patchwork.png cp $rootdir/root/$PROJECT_NAME/img/icon_patchwork.png $rootdir/etc/patchwork/icon_patchwork.png
if [ -d $rootdir/home/$MY_USERNAME ]; then
echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/social.desktop
echo 'Name=Social (Offline)' >> $rootdir/home/$MY_USERNAME/Desktop/social.desktop
echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/Desktop/social.desktop
echo 'Comment=A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB)' >> $rootdir/home/$MY_USERNAME/Desktop/social.desktop
echo 'Exec=bash /usr/bin/start_patchwork' >> $rootdir/home/$MY_USERNAME/Desktop/social.desktop
echo "Icon=/etc/patchwork/icon_patchwork.png" >> $rootdir/home/$MY_USERNAME/Desktop/social.desktop
echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/social.desktop
chmod +x $rootdir/home/$MY_USERNAME/Desktop/social.desktop
chown $MY_USERNAME:$MY_USERNAME $rootdir/home/$MY_USERNAME/Desktop/social.desktop
fi
} }
install_ferment() { install_ferment() {
@ -637,6 +649,18 @@ EOF
# Copy icon to an accesible location # Copy icon to an accesible location
cp $rootdir/root/$PROJECT_NAME/img/icon_ferment.png $rootdir/etc/patchwork/icon_ferment.png cp $rootdir/root/$PROJECT_NAME/img/icon_ferment.png $rootdir/etc/patchwork/icon_ferment.png
if [ -d $rootdir/home/$MY_USERNAME ]; then
echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
echo 'Name=Audio/Music (Offline)' >> $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
echo 'Comment=Audio publishing and streaming' >> $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
echo 'Exec=bash /usr/bin/start_ferment' >> $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
echo "Icon=/etc/patchwork/icon_ferment.png" >> $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
chmod +x $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
chown $MY_USERNAME:$MY_USERNAME $rootdir/home/$MY_USERNAME/Desktop/audio.desktop
fi
} }
initialise_mesh() { initialise_mesh() {