i would like to add nautilus script for right click,like convert selected file with base64 but no luck.Regular command in terminal is like:
base64 input.jpg output.txt
This is my closest script to do it;
#!/bin/sh
echo "$NAUTILUS_SCRIPT_SELECTED_FILE_Path" | base64 > Base64
But it gives the path of file as base64. Can anybody help me about this?
$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
(I think in you real script is ok, because you could obtain the file path). You can usebase64 "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" > "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS".b64
, but better take a look at proposed answers. – dgonzalez Jan 23 '17 at 02:04