You are not logged in.
Hello everyone,
comming from Windows and 7-zip it seems like p7zip-gui is the only real option I can choose.
Also its performance/features/settings are better than the other archive managers (xarchiver, file-roller, engrampa,...).
How ever, I can't get the standard "extra here" / "extract to" / "create archive" shortcuts in thunar to work with p7zip-gui.
Is there any way to edit or remove those entries? Custom actions work ofcourse
OS: Arch
Thanks in advance!
Offline
Okay nvm, I removed the thunar-archive-plugin which also removes the entries from the context menu.
Then I created my own custom actions to work with p7zip-gui
So far XFCE rocks.. everything can be configured... everything!
Offline
If you still want the archive plugin to work, I've figured it out. The biggest challenge was the p7zip-gui file p7zipForFilemanager - there is a bug in the way it processes incoming data. This was a bugger to figure (I've got unzipped files scattered throughout). I've accounted for it in the tap file.
To begin with, have a read through the thunar-archive readme file for a general understanding of how it works.
Then create a /usr/lib/xfce4/thunar-archive-plugin/7zFM.tap file (it has to be called the same name as the desktop file in /usr/share/applications) with the following content:
#!/bin/sh
#
# vi:set et ai sw=2 sts=2 ts=2:
#
action=$1; shift;
folder=$1; shift;
# check the action
case $action in
create)
exec p7zipForFilemanager ad "$folder" "$@"
;;
extract-here)
exec p7zipForFilemanager x "$folder/_zz" "$@"
;;
extract-to)
exec p7zipForFilemanager xd "$folder/_zz" "$@"
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
A couple of other "things-to-maybe-do":
Run (as root):
update-desktop-database /usr/share/applications
If you have another archive manager(s) installed - look at the supported list in /usr/lib/xfce4/thunar-archive-plugin - it may take precedence. I don't know of a way to specify in the plugin which archive manager to use. You'll need to rename/delete the associated tap file so that it isn't used. For example, I have engrampa installed so I had to rename engrampa.tap to engrampa.tap.BAK so it would use the 7zFM.tap file
Hope this helps.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
If you have another archive manager(s) installed - look at the supported list in /usr/lib/xfce4/thunar-archive-plugin - it may take precedence. I don't know of a way to specify in the plugin which archive manager to use. You'll need to rename/delete the associated tap file so that it isn't used. For example, I have engrampa installed so I had to rename engrampa.tap to engrampa.tap.BAK so it would use the 7zFM.tap file
It looks like it selects the default archive manager (or asks) if there are multiple available ones in the /usr/lib/xfce4/thunar-archive-plugin folder. So no need to rename the other files, just make p7zip your default archiver.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
you could just click to extract, you only need p7zip
~/.local/bin/extract.sh
#!/usr/bin/dash
mkdir "${1%%.*}"
chdir "${1%%.*}"
7z x "$1"
~/.local/share/applications/extract.desktop
[Desktop Entry]
Type=Application
Name=EXTRACT
Exec=extract.sh %f
StartupNotify=false
#Terminal=true
NoDisplay=true
Icon=archive-extract
Offline
First, thanks for your help upon this subject. It helps me a lot to achieve this in a short time.
If you have another archive manager(s) installed - look at the supported list in /usr/lib/xfce4/thunar-archive-plugin - it may take precedence. I don't know of a way to specify in the plugin which archive manager to use. You'll need to rename/delete the associated tap file so that it isn't used. For example, I have engrampa installed so I had to rename engrampa.tap to engrampa.tap.BAK so it would use the 7zFM.tap file
Just a precision about your second item: you don't need to remove or rename other tap files there but just set the execution flag as this (with admin privileges) :
chmod +x /usr/lib/xfce4/thunar-archive-plugin/7zFM.tap
(I saw that other tap files had this flag set yet but not the 7zFM.tap. I just then guess that was just missing)
Last edited by PaliPalo (2021-08-29 10:21:06)
Offline
[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 546.59 KiB (Peak: 547.44 KiB) ]