Zenity command to output SHA-256 hash

113 Views Asked by At

So I plan to use a zenity information message box to output a SHA256 within a "nemo_action". I have tried many different methods to accomplish this - none have so far been successful.

Below is my most recent failure:

zenity --info --title="Check SHA256 for %n" --text="$(sha256sum %f)"

and when added to nemo_actions:

Exec=zenity --info --title="Check SHA256 for %n" --text="$(sha256sum %f)"

Thank you for your time. David.

1

There are 1 best solutions below

1
Goto10 On

nvm. I have created a shell script and put it in the nemo scripts folder.

#!/bin/sh
file=$(zenity --file-selection)
sha256sum $file