PeaZip is a natively portable standalone application, requiring none or minimal installation on the target system.
This is an advantage when it's desired to have a portable application to just unpack and run, or when a library freeze is desired and shared libraries should not be furtherly changed (i.e. on some production system), or when it's desired to have a single application with almost identical look and feel and features in an environment with mixed systems or desktop managers.
One obvious shortcoming of this approach is scarce system integration on target environments; FreeDesktop standars (http://freedesktop.org/wiki/Standards/menu-spec) however offers powerful and easy to use methods, using .desktop file scripting, for integration of applications in desktop environments following FreeDesktop standard guidelines (notably, Gnome and KDE).

With following instructions you can easily integrate PeaZip with Gnome and KDE:


1) Install a PeaZip installable package (DEB, RPM, TGZ), or extract PeaZip portable to the desired path and link peazip binary in one of the system's binary folder i.e. /bin, /sbin, /usr/bin, or /usr/local/bin (recommended)


2a) Gnome
- Nautilus scripts
Manually copy 'Archiving' folder, which is contained in 'nautilus-scripts', to your user's profile '.gnome2/nautilus-scripts' folder; that folder is hidden, so you can either find it flagging 'View>Show hidden files' in Nautilus, or clicking on 'Scripts>Open scripts folder' in Gnome's context menu.

- .desktop files
Copy peazip.desktop files in /usr/share/applications
NOTE Gnome is often configured to use /usr/share/application and /usr/share/icons paths (i.e. on Ubuntu), but the paths may be different on some distribution or in some specific installations.

2b) KDE:
- KDE start menu and 'Open with' dialog (.desktop files)
Copy peazip.desktop in (kde directory)/share/applications/kde if you want to add PeaZip in KDE start menu (and 'Open with' dialog); this is authomatically performed by the installable packages.

-Konqueror's Action service menu (.desktop files)
Copy other .desktop files (each one performing a separate action, i.e. add to archive, extract here etc...) in (kde directory)/share/apps/konqueror/servicemenus: single or multiple files (of any type) and folders can be sent to PeaZip which will then determinate the action (open or add to new archive) depending on file type (i.e. as for extraction, PeaZip is able to extract multiple archives, even of different types, at once in parallel); this is authomatically performed by the installable packages.
NOTE KDE directory vary from distribution to distribution (or can even be customized by the user at KDE installation); /opt/kde3 is usually a common place for installing KDE and is used, in example, in Suse and OpenSuse. The (kde directory) is specified in $KDEDIR in environment variable and can be overridden by $KDEDIRS.


3) optionally you can customize .desktop files in order to use PeaZip's icons for Linux (see peazip_icons_linux.zip package on SourceForge): place the icons in (kde directory)/share/icons or usr/share/icons and change consequently the "Icon=tar" entry in .desktop files.

peazip.desktop associates PeaZip with some of most common supported file types, in this folder you can find an alternative .desktop file for PeaZip application to associate it with all mimetypes to get benefit of the ability of the program to handle custom filetypes.
Both files can be used as templates to edit custom filetype associations and other application's properties.