[thunar-archive-plugin] good peazip.tap file, but can't create archives

Genghis Khan genghiskhan at gmx.ca
Fri Nov 16 09:21:10 CET 2012


Hello Maximilien,

The following is a different approach to utilize PeaZip from the
context menu and the Send To menu of Thunar.


Add archive
-----------
To create an archive, you can utilize the Send To menu:
~/.local/share/Thunar/sendto/thunar-sendto-peazip.desktop


Extract archive
---------------
Add the needed actions to peazip.desktop file:
~/.local/share/applications/peazip.desktop

There are two forms of "Extract To..."
 -ext2to: extract archive(s) to specified folder;
 -ext2full: extract archive(s), allowing to specify i/o
 options, password and keyfile;

There are two forms of "Extract Here"
 -ext2here: extract archive(s) here;
 -ext2folder: extract archive(s) here, each in a new folder named
 after the archive;

ext2to and ext2folder are enabled.

To enable all the rest, replace this line:
Actions=peazipextfolder;peazipextto;

with:
Actions=peazipextfolder;peazipexthere;peazipext;peazipextto;

All relevant files are attached.


On Fri, 16 Nov 2012 00:35:07 +0100
Maximilien Noal <noal.maximilien at gmail.com> wrote:

> Hello,
> 
> I installed the archive manager peazip, and removed my previous
> archive manager (file-roller). I created the executable text file
> peazip.tap in /usr/lib/xfce4/thunar-archive-plugin, which contains
> the following :
> 
> #!/bin/sh
> # determine the action and the folder, "$@" then contains only the
> files action=$1; shift;
> folder=$1; shift;
> 
> # check the action
> case $action in
> create)
> exec peazip -add2archive "$@"
> ;;
> 
> extract-here)
> exec peazip "-ext2here" "$@"
> ;;
> 
> extract-to)
> exec peazip -ext2to "$@"
> ;;
> 
> *)
> echo "Unsupported action '$action'" >&2
> exit 1
> esac
> 
> All the actions work in Thunar, except for the create action : it
> says that no archive manager were found.
> 
> Now, if I understand correctly the thunar-archive-plugin README file,
> it says:
> - the basename should be the same (OK : 
> /usr/share/applications/peazip.desktop <-> 
> /usr/lib/xfce4/thunar-archive-plugin/peazip.tap)
> 
> - the .desktop file should contain all the necessary MIME types. That 
> seems OK to me (see attached peazip.desktop file)
> 
> - be sure to run "update-desktop-database
> $prefix/share/applications" (I assume that pacman already did it. I
> did "sudo update-desktop-database /usr/share/applications/". No
> errors were reported, but it changed nothing).
> 
> I don't know what I'm doing wrong, everything seems OK to me. The
> create action works fine in a terminal instance.
> 
> Can someone please tell me what am I missing ?
> 
> Regards,
> Max


-- 
Proper English www.reddit.com/r/proper
4 teh lulz... http://email.is-not-s.ms
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thunar-sendto-peazip.desktop
Type: application/x-desktop
Size: 164 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20121116/cb936ae2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peazip.desktop
Type: application/x-desktop
Size: 1124 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20121116/cb936ae2/attachment-0001.bin>


More information about the Xfce mailing list