I'm trying to write some nautilus scripts.
I have a file (script) called fileType, on the scripts folder, that shows when i right click over a file, on the context menu, but it does nothing.
Code:
#!/bin/sh
for arg
do
filetype=$(file "$arg")
gdialog --title "File-Type Determinator" --msgbox "File $filetype" 200 200
done
Now, i tried gdialog on terminal, and i get a command not found.
So, i changed
gdialog --title "File-Type Determinator" --msgbox "File $filetype" 200 200 to
echo "File $filetype" but i see nothing.
To test, i added at the end of the script the command "peazip", and peazip starts, so the script is running, but the echo/gdialog lines are not working, any ideas?