gcmd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gcmd-usr] 'unzip' as menu plugin


From: Micha
Subject: [gcmd-usr] 'unzip' as menu plugin
Date: Tue, 19 Jul 2005 03:11:38 +0200
User-agent: Das Alpenjodeln

Hi,
I tried to apply 'unzip' to a selection via context menu plugin, but i couldn't 
solve the problem that the 'internal' working directory of gcmd equals the 
start directory no matter which directory actually is shown -- so unzip placed 
the extracted files there, and not where you expect them.
The '-d' option needs some scripting to determine the correct directory, and 
since the selection is afaics not accessible via any variable, i gave in and 
moved the whole thing to a script, in the end.
I post it here because it's an easy example (and template) how to implement any 
command or action to the gcmd selection.

You can try it by placing the script in the users'  PATH (eg, into 
/usr/local/bin) and create a new 'program' entry (settings->options->programs) 
for 'unzip' with the command 'gnome-commander-tools unzip'.
You may also restrict it to be shown up only for *.zip files.
It works for a single file only. I didn't try to find out how to process 
multi-selections.   


 °
 /\/

Attachment: gnome-commander-tools
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]