Skip to content

Instantly share code, notes, and snippets.

@geotsiokos
Last active May 27, 2018 17:15
Show Gist options
  • Save geotsiokos/798889f8861535d39f9ea8c119402f54 to your computer and use it in GitHub Desktop.
Save geotsiokos/798889f8861535d39f9ea8c119402f54 to your computer and use it in GitHub Desktop.
An example to add options like extract, extract to folder and compress to the Service Menu of Konqueror file manager for KDE. Works with KDE, Konqueror 4.x.x and ark.
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/octet-stream;inode/directory
Actions=extract;extractTo;compress
[Desktop Action extract]
Name=Extract Here
Icon=ark
Exec=ark --batch %f
[Desktop Action extractTo]
Name=Extract To...
Icon=ark
Exec=ark -b -d %f
[Desktop Action compress]
Name=Compress
Icon=ark
Exec=ark -d --add %F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment