How To Add a file to IPFS with a "right clic" in your file manager

Sharing this little trick

As a Linux Mint user, my filemanager is Nemo.
On right clic, I wanted to add any of my file to IPFS

This is how I could activate this Action.
“zenity” in modal info box.

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

Using “xclip” to directly copy into your “Clipboard”

Exec=sh -c "/usr/local/bin/ipfs add -q %F | xclip -selection c"

Would you like to share other IPFS tricks?

Are you using IPFS on “Linux Mint” ?
  • Yes
  • No

0 voters

If no, you could share the method to do the same on your own distribution :wink:

2 Likes