Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 25 Sep 2017, 07:34
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Set execution action for *.7z compressed files [SOLVED]?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 2977
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 12 Sep 2017, 05:06    Post subject:  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.

_________________


Last edited by Argolance on Thu 14 Sep 2017, 05:01; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 10825
Location: Gatineau (Qc), Canada

PostPosted: Tue 12 Sep 2017, 05:57    Post subject:  

Hi Argolance.

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

BFN.

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 2977
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 12 Sep 2017, 14:23    Post subject:  

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

_________________

Back to top
View user's profile Send private message Visit poster's website 
OscarTalks


Joined: 05 Feb 2012
Posts: 1598
Location: London, England

PostPosted: Tue 12 Sep 2017, 16:46    Post subject:  

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:
#!/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

Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 2977
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Wed 13 Sep 2017, 11:20    Post subject:  

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. Shocked

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.
170913_170008_412x152_easyshot.jpg
 Description   image 1
 Filesize   11.35 KB
 Viewed   82 Time(s)

170913_170008_412x152_easyshot.jpg

170913_170211_502x362_easyshot.jpg
 Description   image 2
 Filesize   38.5 KB
 Viewed   80 Time(s)

170913_170211_502x362_easyshot.jpg


_________________

Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 2977
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Wed 13 Sep 2017, 11:31    Post subject:  

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
170913_172539_603x348_easyshot.jpg
 Description   
 Filesize   29.43 KB
 Viewed   71 Time(s)

170913_172539_603x348_easyshot.jpg


_________________

Back to top
View user's profile Send private message Visit poster's website 
OscarTalks


Joined: 05 Feb 2012
Posts: 1598
Location: London, England

PostPosted: Wed 13 Sep 2017, 12:57    Post subject:  

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

Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 2977
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 14 Sep 2017, 05:00    Post subject:  

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:
/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

Quote:
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. Cool

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 2977
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 14 Sep 2017, 10:07    Post subject:  

Bonjour,
Arrow French translation file available.

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0388s ][ Queries: 15 (0.0038s) ][ GZIP on ]