|
|
Posted : Sat, 05 April 2008 02:12:56
Subject :
scripting question
I'm using Ubuntu Hardy but this might apply to other distros too.
I have camouflage installed in Wine. This program takes one file and hides it inside another creating one file that looks like the first but also contains the second.
It will also un-camouflage a camouflaged file.
I want to add a launcher to the right click menu using nautilus-actions.
The problem is that I can't simply run the camouflage.exe. It requires parameters along with file names. (input, file to hide in, and output file)
I am thinking I need to wright a script or a c++ program that will ask for the file name to camouflage with, and then the file name for the new output file that actually contains both files in one. (Actually two seperate scripts or programs, one called camouflage and the other called uncamouflage.
Then add a launcher for each of the two programs or scripts to the menu.
Any thoughts on this? Am I over thinking it and missing a simpler way? Is there any reason either scripting or c++ would be preferred, one over the other?
I have all the commands needed, and a very little experience with Bash and c++. Any thoughts or suggestions are appreciated as I look into doing this.
Thanks
|
|
fninja
|
Posted : Fri, 11 April 2008 05:26:30
Subject :
Re: scripting question
Might wanna look into zenity,I believe it will allow you to use it in a script and have it prompt for input and such(I've never used it myself,though I've seen it used in nautilus scripts if I remember correctly).
|