Posts: 1,028
SamK
Joined: 21 Aug 2011
#1
In ROX-Filer, clicking on an archive file (zip, 7z, tgz, etc) opens an app to allow the archive contents to be extracted. When working in a file manager it is useful to have options in its menu to create or extract archives. Currently these are not avialable in ROX-Filer in antiX.

The following adds two options to the ROX-Filer menu, Archive-Create and Archive-Extract (both via right-click-->Send To).


Install the Scripts
  1. Download both zip files attached at the foot of this post
  2. As root extract them to /usr/local/bin/
    archive-create.sh
    archive-extract.sh


Set Up the Menu Entries in ROX-Filer
Do the following as your normal user in ROX-Filer
  1. Open the directory /home/USERNAME/.config/rox.sourceforge.net/SendTo/
  2. Drag-n-drop /usr/local/bin/archive-create.sh to it and create a symlink
  3. Right-Click on the symlink-->Rename it Archive-Create (i.e. no .sh)
  4. Right-Click on the symlink-->Set icon. Select Only for the file...
  5. Drag-n-drop the icon file /usr/share/icons/gTangish-2.0a1/48x48/apps/file-roller.png to the set icon box
  6. Repeat steps 2 to 5 inclusive for archive-extractor.sh
    Rename=Archive-Extract
    Icon=/usr/share/icons/gTangish-2.0a1/48x48/mimetypes/zip.png

Note: Open ROX-Filer as root and repeat the steps in the above section Set Up the Menu Entries in ROX-Filer to add them to root's menu.


Screen shot of it in action
Screen shot showing a directory and file selected for archiving and displaying the menu entries.
Screen shot showing a directory and file selected for archiving and displaying the menu entries.