Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Step 1: I wanted to Add a menu as "Compress as ZIP" on right click. I know i can use change default compress format as "ZIP" using gconf-editor. But I wanted to add a new Menu Item for Compressing as ZIP without opening any other option dialog.

Step 2: I wanted to Compress a file as ZIP and Rename it as a "epub".

Please let me know is it possible to zip&rename by adding single menu Item? Im using Ubuntu 11.04 and Installed "Nautilus-Action-Configurations", but unsuccessful.

N.B. I have read this Ask Ubuntu Q&A; I dont want to open a new window to choose me the format. It should be straight away saved as ZIP.

share|improve this question

You can add custom menu entries with the package nautilus-actions, see this Q&A for a similar problem (there are nice screenshots too... :) ).

I couldn't manage to tell nautilus-actuions from which directory to run the path or to run two commands (i.e. cd to the correct directory first). Therefore 2 workarounds:

Full paths

In nautilus-actions: As command enter zip with the options %d/%f.epub %M.

This will include the whole path in the ZIP file. This is probably not suiteable for *.epub files. You can add the -j flag to include only files (no directories at all).


Place this script at /usr/local/bin:


cd $1
zip $2.epub $3

And use your-script-name as command and this options: "%d" "%f.epub" "%m"

I didn't test it, please report bugs (especially with spaces in the path or file names!) or edit this answer to confirm that it works!

share|improve this answer
I will test and will update – Ananthavel Sundararajan Apr 12 '12 at 8:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.