Originally Posted by emuub
I have a one line command that encrypts a file
gpg -c /media/stickname/filename.ext, and it works just fine
please: What do I do to be able to drag and drop filename.ext onto it to have the same effect. In windoze it is "progname.exe %1".
I've got good news and I've got bad news. The good news is that there is an easy way to specify arguments in shell scripts, just as in batch files: in a batch file, you would use %1 to specify the first argument, in a shell script you use $1.
The bad news is that this feature doesn't extend to drag and drop. at least on the Gnome desktop that I'm currently using. Perhaps someone on KDE one of the other desktop environments can comment?
I put the file 'catme' on the desktop:
I made the file executable: chmod 755 ~/Desktop/catme
then dragged a text file over the desktop icon, and nothing fancy happened.