|
Author |
Message |
|
|
Posted Apr 05, 2008 at 2:12:56 AM
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
|
Shashank Sharma
Joined Jan 01, 1970 Posts: 1657
Location:New Delhi, India
Other Topics
|
Posted:
Apr 09, 2008 5:09:54 PM
Subject: scripting question
That is far more that what nautilus-actions was designed to do, in my opinion.
Maybe you should ask at http://www.grumz.net/ and look through the available configuration files to maybe get an idea: http://www.grumz.net/index.php?q=configlist
Cheers!
Coauthor of Beginning Fedora: From Novice to Professional published by Apress.
Please follow the Forum Guidelines
|
fninja
Joined Apr 05, 2008 Posts: 55
Other Topics
|
Posted:
Apr 11, 2008 5:26:30 AM
Subject: 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).
|
Shashank Sharma
Joined Jan 01, 1970 Posts: 1657
Location:New Delhi, India
Other Topics
|
Posted:
Apr 11, 2008 1:55:54 PM
Subject: scripting question
Zenity is good, yes. I've written these three articles in the past that might be of some help:
http://www.linux.com/feature/114156 -- Create GUI dialogs for GNOME and KDE
http://www.linux.com/articles/55389 -- CLI Magic: Creating basic front ends with dialog and Xdialog
http://www.linux.com/feature/119603 -- Extending Nautilus context menus with Nautilus-actions
Cheers!
Coauthor of Beginning Fedora: From Novice to Professional published by Apress.
Please follow the Forum Guidelines
|