Set execution action for *.7z compressed files [SOLVED]?
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Set execution action for *.7z compressed files [SOLVED]?
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.
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.
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
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 beThis 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.
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 "$@"
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
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
Thanks for your reply.
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.
Thanks for your reply.
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.OscarTalks wrote:Add a MIME-type for it in /root/Choices/MIME-types
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
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
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...
- Attachments
-
- 170913_172539_603x348_easyshot.jpg
- (29.43 KiB) Downloaded 95 times
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
Thank you a lot.
Cordialement.
I tried this too but typing Xarchive instead of xarchive, so it couldn't work properly... Now, it is OK (without "exec" before xarchive)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.
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
I noticed this "tidy" thing. As said above, I keep it for my own use: this program is quite perfect.UExtract has the advantage that it creates a containing directory to keep things tidy.
Thank you a lot.
Cordialement.