How to set default options for archiver

Asked by FUbu

How do I set options for archiver, if I want to use option -mhe with 7zip when ever I compress something. I couldn't locate any configuration file easily nor there is GUI for setting these kind of options.

Do I need to modify source and recompile it to set this simple option?

- Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu file-roller Edit question
Assignee:
No assignee Edit question
Solved by:
Hanusz leszek
Solved:
Last query:
Last reply:
Revision history for this message
Best Hanusz leszek (leszek-skynet) said :
#1

Thanks for your question.

I have a proposition but it is a little hackish.
try this:

move /usr/bin/7z to /usr/bin/7z.orig
create a new file /usr/bin/7z with the following content.

#!/bin/bash
exec 7z.orig -mhe "$@"

don't forget to set the good permission to this new file (755)

Revision history for this message
FUbu (froller) said :
#2

Thanks Hanusz leszek, that solved my question.

Revision history for this message
FUbu (froller) said :
#3

I wonder how "dumb" people can come using Windows. ;) I have been using unix for 5 years (about 20 years ago). And I used to use 4dos to make complex batches resembling more program than batch file. And now I didn't figure this out. I'm shamed. - Thank you so much providing simple and good solution.