Set execution action for *.7z compressed files [SOLVED]?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

Set execution action for *.7z compressed files [SOLVED]?

#1 Post by Argolance »

Bonjour,
I don't remember the exact English words for the right click menu, in French "Définir l'action d'exécution"...
I would like to configure this action to open directly *.7z files while clicking on, exactly the same way opening *.zip files (... and others),
I tried many things, but didn't succeed.
Note: I have p7zip-full_9.20.1 installed.
Any idea?

Cordialement.
Last edited by Argolance on Thu 14 Sep 2017, 09:01, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hi Argolance.

Link it to UExtract by SFR. It's based on 7z.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#3 Post by Argolance »

Thank you a lot musher0!
I didn't know this program which is really perfect! I take it...
But this doesn't mean that the problem is "[SOLVED]"!

So, if possible, I still would like to get an answer.

À la tienne Étienne! :wink:

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#4 Post by OscarTalks »

Hello Argolance,

Add a MIME-type for it in /root/Choices/MIME-types
This would be a script named application_x-7z-compressed
Contents could be

Code: Select all

#!/bin/sh
exec /usr/local/apps/UExtract/AppRun "$@"
This opens UExtract with its GUI (when you left-click on a .7z file) so you can then click OK or choose another destination directory.
If you prefer it to just extract in the same directory immediately with no questions you can use exec uextract "$@" instead.

I just compiled p7zip-16.02 in Wheezy and added the MIME-type and it works fine in my tests.
Oscar in England
Image

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#5 Post by Argolance »

Bonjour,
Thanks for your reply.
OscarTalks wrote:Add a MIME-type for it in /root/Choices/MIME-types
It is exactly what I did (image 1) for my own use but I do not understand and was wondering why it is not possible to make it work using pupzip (Xarchive), exactly like for *.zip files, though the extension seems to be supported (image 2). If I try to do it, using ordinary configuration, Xarchive want to create a new archive or add files to an existent one. :shock:

I would like to correct this for ToOpPy users, without being forced to integrate the excellent "UExtract", which I will nevertheless upload to the repository as available program that user could install if it is really useful for him.

Cordialement.
Attachments
170913_170008_412x152_easyshot.jpg
image 1
(11.35 KiB) Downloaded 106 times
170913_170211_502x362_easyshot.jpg
image 2
(38.5 KiB) Downloaded 103 times

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#6 Post by Argolance »

Just for information, our French member did18 created an application called CreArch which supports the most commonly used compressed files and can do very much more... :wink:
Attachments
170913_172539_603x348_easyshot.jpg
(29.43 KiB) Downloaded 95 times

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#7 Post by OscarTalks »

Hello Argolance,

Try using exec xarchive "$@" in the MIME-type file (not pupzip).
This just extracts the archive in the usual way when you click on it.

UExtract has the advantage that it creates a containing directory to keep things tidy.
Oscar in England
Image

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#8 Post by Argolance »

Bonjour,
OscarTalks wrote:Hello Argolance,

Try using exec xarchive "$@" in the MIME-type file (not pupzip).
This just extracts the archive in the usual way when you click on it.
I tried this too but typing Xarchive instead of xarchive, so it couldn't work properly... Now, it is OK (without "exec" before xarchive)

Code: Select all

/root/.config/rox.sourceforge.net/MIME-types/application_x-7z-compressed: line 2: exec: exec: introuvable
/root/.config/rox.sourceforge.net/MIME-types/application_x-7z-compressed: line 2: exec: exec xarchive: introuvable
UExtract has the advantage that it creates a containing directory to keep things tidy.
I noticed this "tidy" thing. As said above, I keep it for my own use: this program is quite perfect.
Thank you a lot. 8)

Cordialement.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#9 Post by Argolance »

Bonjour,
:arrow: French translation file available.

Cordialement.

Post Reply