split REC & Astroport G1Station desktop icons + Nemo "Add To IPFS"
This commit is contained in:
parent
26bf94f0fe
commit
282509fe28
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Name=Astroport
|
||||
Exec=/home/_USER_/.zen/Astroport.ONE/ajouter_media.sh
|
||||
Icon=/home/_USER_/.zen/Astroport.ONE/rec.png
|
||||
Exec=xdg-open http://astroport.localhost:1234
|
||||
Icon=/home/_USER_/.zen/Astroport.ONE/logo96.png
|
||||
Type=Application
|
||||
Categories=Utility
|
||||
|
|
6
setup.sh
6
setup.sh
|
@ -66,10 +66,14 @@ done
|
|||
[[ "$USER" == "xbian" ]] && echo "xbian ALL=(ALL) NOPASSWD:ALL" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/astroport')
|
||||
|
||||
echo "#############################################"
|
||||
echo "# ADDING <<<Astroport>>> DESKTOP SHORTCUT"
|
||||
echo "# ADDING <<<Astroport & REC >>> DESKTOP SHORTCUT"
|
||||
[[ -d ~/Bureau ]] && sed "s/_USER_/$USER/g" ~/.zen/Astroport.ONE/astroport.desktop > ~/Bureau/astroport.desktop && chmod +x ~/Bureau/astroport.desktop
|
||||
[[ -d ~/Desktop ]] && sed "s/_USER_/$USER/g" ~/.zen/Astroport.ONE/astroport.desktop > ~/Desktop/astroport.desktop && chmod +x ~/Desktop/astroport.desktop
|
||||
[[ -d ~/Bureau ]] && sed "s/_USER_/$USER/g" ~/.zen/Astroport.ONE/rec.desktop > ~/Bureau/rec.desktop && chmod +x ~/Bureau/rec.desktop
|
||||
[[ -d ~/Desktop ]] && sed "s/_USER_/$USER/g" ~/.zen/Astroport.ONE/rec.desktop > ~/Desktop/rec.desktop && chmod +x ~/Desktop/rec.desktop
|
||||
|
||||
echo "# ADD NEMO 'Add To IPFS' ACTION"
|
||||
~/.zen/Astroport.ONE/tools/install.nemo.add2ipfs.sh
|
||||
|
||||
echo "CREATE SYSTEMD astroport SERVICE >>>>>>>>>>>>>>>>>>"
|
||||
cat > /tmp/astroport.service <<EOF
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
MY_PATH="`dirname \"$0\"`" # relative
|
||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||
ME="${0##*/}"
|
||||
########################################################################
|
||||
######## https://discuss.ipfs.tech/t/how-to-add-a-file-to-ipfs-with-a-right-clic-in-your-file-manager/16294 ##########
|
||||
########################################################################
|
||||
|
||||
if [[ $(which nemo) && -d ~/.local/share/nemo/actions/ ]]; then
|
||||
|
||||
echo '[Nemo Action]
|
||||
Name=Add to IPFS
|
||||
Comment=Adding %f to IPFS
|
||||
Exec=sh -c "/usr/local/bin/ipfs add -q %F | xargs -L1 -I % /usr/bin/zenity --width=300 --height=100 --info --text=%"
|
||||
Selection=s
|
||||
Extensions=nodirs;
|
||||
Quote=double
|
||||
EscapeSpaces=true' > ~/.local/share/nemo/actions/add2ipfs.nemo_action
|
||||
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue