change compression algorithm of KDE4 ark dolphin context menu

in KDE4 with dolphin file manager, and ark compression manager program installed, you have a contextual menu that enables you to simply zip and unzip your files.

Unfortunately its default compression file formats are a bit weired and you will pretty soon feel the need to tweak them. Here is how:

Open the following file in an editor:

kdesudo kate /usr/share/kde4/services/ServiceMenus/ark_addtoservicemenu.desktop

the following line is the one of interest:

Actions=compressHere;compressAsZip;compressAsRar;compressAsTar;compressTo;

for each action there is below a menu entry with all supported translations and eventually the command line.

For example to change the default compression method to the most efficient one which isĀ  LZMA (aka 7z) scroll down to

[Desktop Action compressHere]
...various translations here...
Exec=ark --changetofirstpath --add --autofilename tar.gz %F

and change it to this one

Exec=ark --changetofirstpath --add --autofilename 7z %F

save the file, log out and log in again. Enjoy saving hard disk space!

Related posts:

  1. Prune KDE New File > Templates
  2. change keyboard layout in shell
  3. Windows immediately logs out after logging in (partition letter change)
| Print This Post Print This Post | Email This Post Email This Post
RSS 2.0 | Trackback | Comment

Leave a Reply

XHTML: You can use these tags: b, cite, code, em, i, q cite="", strike, strong.