You are not logged in.
Hi,
I'd like to integrate a command line utility into a file manager. The utility essentially concerns itself with file copying (shaping audio albums for mobile devices). The plugin must expose some GUI: checkboxes, buttons, text lines.
Above all, the plugin API should be the easiest to use on the block, since I am not interested in massive investment. Any suggestions?
Offline
Starting a terminal with -e option does not fulfill your needs?
Offline
Starting a terminal with -e option does not fulfill your needs?
What is it? Does it have something to do with GUI utilities?
Offline
Your question confuses me. Let me see if I understand: You are looking for a GUI file manager (Thunar, Dolphin, Midnight Commander...) that supports "plugins". You want to create a plugin that will allow you select some files or directories and then run a command on them. Also, you want it to me dead simple to create / use. ...Is this correct so far?
I don't understand this part at all:
The plugin must expose some GUI: checkboxes, buttons, text lines.
Can you please explain it again? Would a screenshot mockup help?
Offline
Yes, something like this, drcouzelis. I'd like to select a directory, invoke a context menu, get a form with several checkboxes and text fields, make my choices, and press "OK". Pretty much like RabbitVCS plugin for Nautilus, for example. I suppose that the majority of the available file managers have the necessary functionality, which presents a bit of a problem: which one has the easiest learning curve (and/or is better documented)? This is important, if you want a simple plugin once in a lifetime.
Offline
I did a quick check in Thunar (what I use). Creating a simple plugin is super quick and easy to do, and the dialog gives a list of all the "%f" style escape characters you can use. But you can only actually enter a single command that will be called when the plugin is run.
I'd like to select a directory, invoke a context menu, get a form with several checkboxes and text fields, make my choices, and press "OK".
In my opinion, what you just described is "programming".
You MIGHT be able to create a dialog with all of those options in a simple Bash script by using Zenity, but I'm not sure. I've only ever made simple yes / no / enter some text dialog boxes with Zenity before.
Good luck! ![]()
Offline
I'm a bit out of touch with gui file managers as I haven't use any of them in a while. But the last I'd use (and the only one I'd go back to) is Rox filer. That is *very* scriptable. It is trivially easy to add user-defined actions to context menus even based on file type.
Rox does not provide any mechanism to create new (customized) dialogs - I doubt any file manager does. But as drcouzelis suggested, something like zenity should allow for that. Or even pygtk (python + gtk) is pretty simple.
Rox would allow for easily triggering any bash/python script from a context menu passing the selected file names. Then that script could display the dialog and do whatever needed to be done.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'd like to integrate a command line utility into a file manager. The utility essentially concerns itself with file copying (shaping audio albums for mobile devices). The plugin must expose some GUI: checkboxes, buttons, text lines.
Above all, the plugin API should be the easiest to use on the block, since I am not interested in massive investment. Any suggestions?
This is quite probably an X-Y Problem, so my suggestion would be to tell us exactly what "shaping audio albums for mobile devices" means and what command line utility you're using to do it. There may already be ten other things that do what you want.
Offline
so my suggestion would be to tell us exactly what "shaping audio albums for mobile devices" means and what command line utility you're using to do it. There may already be ten other things that do what you want.
Never mind "shaping audio albums for mobile devices", ANOKNUSA. There is the CLI utility in question, perfectly usable - from the command line, that is. It's a frontend that's lacking. A full featured file manager would be perfect: file search, bookmarks, preview - everything's already there. The plugin is expected to shape the command line arguments, nothing else.
Offline
Okay, you missed my point. I store my FLAC music library on a box I use as a multi-purpose server at home. Since my smartphone and laptop have limited storage I convert all my FLAC to MP3 on that server, then transfer those files to my laptop using sshfs, which mounts a single remote folder to a local one (/mnt/srv) over SSH. Other options I could use are an NFS share, a Samba share, BitTorrent Sync, SyncThing (or whatever they call it now)...
The point is, I have multiple command-line program options to mount a remote folder that I use to move audio albums to mobile devices, and they all make a remote folder accessible to any file manager you can think of. No special plugin is necessary. Your goal is not to create a plugin, your goal involves moving files around in some particular way for some particular reason. You've just assumed that changing your file manager and then writing a new specialized plugin for it is the best way to achieve that goal. I'm wondering if it might not be. You're asking folks here to spend time and energy brainstorming solutions to a problem without really telling them what the problem is.
Offline
You're asking folks here to spend time and energy brainstorming solutions to a problem without really telling them what the problem is.
It isn't about brainstorming. It's about sharing experience, since I have none in this particular field and face the perspective of full scale research with all the trial and error thing.
Offline