|
NAMEXArchive - a gtk2.0 front-end for various command line archivers.SYNOPSISxarchive [-a archive | -c archive] [files...]DESCRIPTIONXArchive is graphical front-end that uses external wrappers to communicate with the command line archiving tools. XArchive handles creation, extraction and manipulation of archives depending on whether or not the command line tools (and the wrappers written for them) support those actions. The types of archives supported depends on what wrappers are available in XArchive's wrapper directories (see WRAPPERS below), and what command line tools are installed.Currently there are bash shell wrappers for:
OPTIONS
USAGEWhen XArchive starts it consults each wrapper it finds in it's wrapper directories (see WRAPPERS below) to see what file types it can support.If XArchive is started without being passed any files to open, or any options, an information page is shown detailing what wrappers were found and what file types are (based on file extensions) supported by those wrappers If some files to open are passed to XArchive without any options it will treat them as archives and attempt to use the wrappers associated with those archives (based on file extensions) to get, and show, the contents of each. The -a and -c options allow you to use XArchive with your file-manager to add to an existing archive, or to create a new one. Using xarchive -a ask as your file-manager's "open with" command on some selected files will allow you add those selected files to an existing archive (xarchive will ask which archive to add them too). Using just xarchive -a as your file-manager's "open with" command on a selected archive file will allow you open that archive and use XArchive's multi-file selector to choose the files to add to it. Using xarchive -c ask as your file-manager's "open with" command on some selected files allows you to create a new archive containing those files (XArchive will ask you for the new archive's name). This option won't allow opening an existing archive and guarantees that a unique one is created. Once and archive is opened it's entries can be selected to delete, extract, or open-with. You can use the following selection methods:
Right-Click on an archive listing will bring up a context menu with the actions from the toolbar on it. Double-Left-Click on an entry will temporarily extract that file from the archive and use the default handler to view it. If no default handler has been set the "open with.." dialog is opened so that you can set one. Just select an item in the archive and start typing to use the type-ahead search feature (or you can press Ctrl-f). ABOUT 'DRAG AND DROP'Once an archive is opened you can drag files from your filemanager (if it supports drag and drop) on to the archive list and have the add-to-archive file chooser open. It's list of files to add will contain the items dropped. From there you can select more files to add from the file chooser, or drop files onto this list from your filemanager.ABOUT 'OPEN WITH'Open with will temporarily extract selected files and view them with the user selected application. From this dialog you can also set an application as the default double-click handler by clicking that option's checkbox. Setting this allows you to double left click entries in the listing and have them viewed with the set application.Note: When picking an open with application you should make sure that application doesn't fork to the background. If it does then the temporary file that was extracted will most likely be deleted before the application can view it. For example, gvim will fork to the background, so instead you should use gvim --nofork. ABOUT CREATING ARCHIVESWhen you select New you will be asked for an archive name. The extension you use on your name will determine what kind of archive is created. For example using mywebstuff.zip will create a zip, and mywebsutff.tar.bz2 will create a bzip2 compressed tar.Then, in the same dialog, you'll select the folder you want to save the archive in. When that's done, and you press open the multiple file selector will be opened. The multiple file selector allows you to browse around the file system and pick off what files and directories you wish to add to your archive. Just select the files in the file chooser list and press the add to list button. To remove files from the add to archive list, select the files and press the remove from list button. Note that the the full path for the file or directory will be listed in the add to archive list for your reference, but when the archive is made only the basename of the entry will be added. For example, if the /home/me/html directory is on the list to be added then the archive will contain the directory html (and it's contents), not it's full path (the /home/me part is discarded). This is a good thing. When you send someone your archive, and they extract it, you probably don't want it trying to create a /home/me/html directory tree on your buddies machine. KEYBOARD SHORTCUTSMAIN ARCHIVE LISTING
FILE AND DIRECTORY CHOOSER
(Note: To select hidden directories right click on the file listing and select "show hidden files" from the popup menu) 'ADD TO ARCHIVE' SELECTORThe same as the File and Directory Chooser with the following added:
WRAPPERSXArchive checks the following directories, in the following order, for it's wrappers:
The first wrappers found are the first ones used. Thus, if you copy a wrapper from the system wide directory (/usr/local/lib/xarchive/wrappers/) to your own private wrapper directory (~/.xarchive/wrappers/) and modify it, your modified version will be used. The wrappers are stand alone executables whose job is to:
Wrappers can be any type of executable file (python scripts, c programs, bash scripts, etc...) that handle the following options in the following manner:
WRAPPER EXIT CODES
See the wrappers included in /usr/local/lib/xarchive/wrappers (or /usr/lib/xarchive/wrappers) for examples. BUGSUse bug tracker on the sourceforge project page:http://sourceforge.net/projects/xarchive/ AUTHORWritten by Lee Bigelow <ligelowbee@yahoo.com>RESOURCESSourceForge:http://sourceforge.net/projects/xarchive/ Main web site: http://xarchive.sourceforge.net COPYINGCopyright © 2005 Lee Bigelow <ligelowbee@yahoo.com>. Free use of this software is granted under the terms of the GNU General Public License (GPL). Visit the GSP FreeBSD Man Page Interface. |