From 399af60ccca548caf6d092a9878ff020d7bd5794 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Oct 2017 15:58:35 +0100 Subject: [PATCH] Add initial mesh desktop icons which can be used offline --- src/freedombone-image-customise | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 88ac7982..6b5e4bca 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -600,6 +600,18 @@ EOF # Copy icon to an accesible location 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() { @@ -637,6 +649,18 @@ EOF # Copy icon to an accesible location 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() {