Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-08-19 08:29:02

inukaze
Member
Registered: 2014-07-31
Posts: 46

Xfce + Thunar-archive-plugin and Extract Context Menu Option

Hi there, ever i am try to use "Extract Here" from any filetype ".tar.{gz,bz2}" ".rar" ".zip" ".7z" ".ace" etc . evers fails. i had installed "xarchiver" and "squeeze" and this don't work like i need it.

Someone can explainme how i must the file "/usr/lib/xfce4/thunar-archive-plugin/xarchiver.tap" (i am sure my distro Manjaro OpenRC Xfce, use this file)

for use "peazip" or "7z" please. because, for me "squeeze" are not good, "xarchiver" neither.
the idea of that tools are fine, but don't works at all i need it.

Someone can help me with this ?

the content of my "xarchiver.tap"

#!/bin/sh
#
# xarchiver.tap - Wrapper script to create and extract archive files
#                 in Thunar, via the thunar-archive-plugin, using the
#                 xarchiver archive manager.
#
# $Id$
#
# Copyright (c) 2006 Benedikt Meurer <benny@xfce.org>.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA.
#

# 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 xarchiver "--add-to=$@"
	;;

extract-here)
	exec xarchiver "--extract-to=$folder" "$@"
	;;

extract-to)
	exec xarchiver --extract "$@"
	;;

*)
	echo "Unsupported action '$action'" >&2
	exit 1
esac

or i can change the default tool for this plugin, for try with "file-roller"

Last edited by inukaze (2016-08-19 08:32:48)

Offline

#2 2016-08-19 09:02:00

inukaze
Member
Registered: 2014-07-31
Posts: 46

Re: Xfce + Thunar-archive-plugin and Extract Context Menu Option

I solve it. by an ease way :

in a terminal

cd /usr/lib/xfce4/thunar-archive-plugin
sudo cp xarchiver.tap peazip.tap
sudo nano peazip.tap

And the edited and final version of peazip.tap content :

#!/bin/sh
#
# peazip.tap -	Wrapper script to create and extract archive files
#               in Thunar, via the thunar-archive-plugin, using the
#               xarchiver archive manager.
#
# $Id$
#
# Copyright (c) 2006 Benedikt Meurer <benny@xfce.org>.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA.
#

# 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-add" "$@"
	;;

extract-here)
	exec peazip "-ext2here" "$@"
	;;

extract-to)
	exec peazip -ext2to "$@"
	;;

*)
	echo "Unsupported action '$action'" >&2
	exit 1
esac

Finally i ran

sudo update-desktop-database /usr/share/applications

and now my Xfce use "Peazip" big_smile for extract with "Extract Here" (thunar-archive-plugin)

Last edited by inukaze (2016-08-23 08:23:50)

Offline

#3 2016-08-21 00:58:00

Lengendary
Member
Registered: 2014-05-26
Posts: 34

Re: Xfce + Thunar-archive-plugin and Extract Context Menu Option

Thanks for sharing this brilliant idea. I use File-Roller, B1 Free Archiver, Peazip.
This modification will become handy.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 531.86 KiB (Peak: 532.48 KiB) ]