<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1106111&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Remplacement de File Roller par Peazip en contextuel]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1106111</link>
		<description><![CDATA[Les sujets les plus récents dans Remplacement de File Roller par Peazip en contextuel.]]></description>
		<lastBuildDate>Tue, 20 Nov 2012 22:17:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11583211#p11583211</link>
			<description><![CDATA[<div class="quotebox"><cite>Draky a écrit&#160;:</cite><blockquote><div><p>2) si j&#039;installe file-roller et peazip, comment le système détermine lequel faut utiliser ?</p></div></blockquote></div><p><a href="http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin">D&#039;après la doc&#039;</a>, il te demande celui que tu préfère. Mais je ne l&#039;ai jamais vu faire ça chez moi.</p>]]></description>
			<author><![CDATA[dummy@example.com (The Uploader)]]></author>
			<pubDate>Tue, 20 Nov 2012 22:17:56 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11583211#p11583211</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11583111#p11583111</link>
			<description><![CDATA[<div class="quotebox"><cite>Draky a écrit&#160;:</cite><blockquote><div><p>1) pourquoi le manquement d&#039;un seul type mime peut faire foirer ? o.O</p></div></blockquote></div><p>S&#039;il n&#039;y a pas au moins &quot;application/x-compressed-tar&quot;, &quot;application/x-tar&quot;, &quot;application/x-zip&quot; et &quot;application/zip&quot; dans le .desktop, thunar-archive-plugin considère que le gestionnaire d&#039;archive ne sait pas gérer assez de formats et l&#039;ignore.</p>]]></description>
			<author><![CDATA[dummy@example.com (mr_pouit)]]></author>
			<pubDate>Tue, 20 Nov 2012 22:11:50 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11583111#p11583111</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11581741#p11581741</link>
			<description><![CDATA[<p>Back to business <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Bon ça marche !<br />youhou, merci <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Bon j&#039;ai deux questions bonux :<br />1) pourquoi le manquement d&#039;un seul type mime peut faire foirer ? o.O<br />2) si j&#039;installe file-roller et peazip, comment le système détermine lequel faut utiliser ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Draky)]]></author>
			<pubDate>Tue, 20 Nov 2012 20:25:18 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11581741#p11581741</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11547871#p11547871</link>
			<description><![CDATA[<p>Merci, ce sera moins bourrin d&#039;avoir le type MIME qui manque plutôt que de copier la ligne à partir du fichier .desktop de file-roller. Et ne pas savoir pourquoi exactement cette ligne était fausse m&#039;énervait. <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (The Uploader)]]></author>
			<pubDate>Sat, 17 Nov 2012 20:08:46 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11547871#p11547871</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11547591#p11547591</link>
			<description><![CDATA[<div class="quotebox"><cite>The Uploader a écrit&#160;:</cite><blockquote><div><p>J&#039;ai tenté de créer une archive : PAM ! Erreur &quot;aucun gestionnaire d&#039;archive trouvé&quot;. C&#039;est encore une fois la ligne &quot;MimeType=&quot; de /usr/share/applications/PeaZip.desktop qui est fausse !</p></div></blockquote></div><p>Il manque &quot;application/x-compressed-tar&quot;, je pense que c&#039;est pour cela que thunar-archive-plugin l&#039;ignore.</p>]]></description>
			<author><![CDATA[dummy@example.com (mr_pouit)]]></author>
			<pubDate>Sat, 17 Nov 2012 19:54:21 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11547591#p11547591</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11544351#p11544351</link>
			<description><![CDATA[<p>J&#039;ai fait une machine virtuelle de Xubuntu 12.10, j&#039;ai peazip qui fonctionne avec le plugin des archives pour Thunar, voici ce que j&#039;ai fait pour y arriver :</p><p>Installation du PPA Xfce 4.12 pour tenter d&#039;avoir les mêmes conditions de test que chez toi :</p><div class="codebox"><pre><code>sudo apt-add-repository ppa:xubuntu-dev/xfce-4.12
sudo apt-get update
sudo apt-get dist-upgrade</code></pre></div><p>+ redémarrage</p><p>J&#039;ai viré file-roller :</p><div class="codebox"><pre><code>sudo apt-get purge file-roller</code></pre></div><p>Comme je ne trouvais vraiment pas peazip dans les dépôts, je l&#039;ai installé depuis le PPA :</p><div class="codebox"><pre><code>sudo apt-add-repository ppa:upubuntu-com/ppa
sudo apt-get update
sudo apt-get install peazip</code></pre></div><p>J&#039;ai vu qu&#039;il y avait un fichier <strong>P</strong>ea<strong>Z</strong>ip.desktop dans /usr/share/applications, j&#039;ai donc créé /usr/lib/i386-linux-gnu/thunar-archive-plugin/<strong>P</strong>ea<strong>Z</strong>ip.tap :</p><div class="codebox"><pre><code>#!/bin/sh 
# determine the action and the folder, &quot;$@&quot; then contains only the files 
action=$1; shift; 
folder=$1; shift; 
 
# check the action 
case $action in 
create) 
       exec peazip -add2archive &quot;$@&quot; 
       ;; 
 
extract-here) 
       exec peazip -ext2here &quot;$@&quot; 
       ;; 
 
extract-to) 
       exec peazip -ext2to &quot;$@&quot; 
       ;; 
 
*) 
       echo &quot;Unsupported action &#039;$action&#039;&quot; &gt;&amp;2 
       exit 1 
esac</code></pre></div><p>J&#039;l&#039;ai rendu exécutable :</p><div class="codebox"><pre><code>sudo chmod +x /usr/lib/i386-linux-gnu/thunar-archive-plugin/PeaZip.tap</code></pre></div><p>J&#039;ai tenté de créer une archive : PAM ! Erreur &quot;aucun gestionnaire d&#039;archive trouvé&quot;. C&#039;est encore une fois la ligne &quot;MimeType=&quot; de /usr/share/applications/PeaZip.desktop qui est fausse !</p><p>J&#039;ai donc créé le sous-dossier ~/.local/share/<strong>applications</strong> :</p><div class="codebox"><pre><code>mkdir ~/.local/share/applications</code></pre></div><p>J&#039;ai réinstallé file-roller pour pouvoir prendre la ligne &quot;MimeType=&quot; de son fichier /usr/share/applications/file-roller.desktop :</p><div class="codebox"><pre><code>sudo apt-get install file-roller</code></pre></div><p>J&#039;ai créé le fichier ~/.local/share/applications/<strong>P</strong>ea<strong>Z</strong>ip.desktop :</p><div class="codebox"><pre><code>cp /usr/share/applications/PeaZip.desktop ~/.local/share/applications</code></pre></div><p>J&#039;ai ouvert ~/.local/share/applications/PeaZip.desktop pour y corriger la ligne &quot;MimeType=&quot; en prenant celle de file-roller.desktop :</p><div class="codebox"><pre><code>[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=PeaZip

# bonne ligne MimeType provenant de file-roller.desktop
MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;application/x-archive;

# mauvaise ligne MimeType provenant de /usr/share/applications/PeaZip.desktop désactivée
#MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;

GenericName=Archiving Tool
Exec=peazip %F
Icon=peazip.png
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=GTK;KDE;Utility;System;Archiving;
Name[en_US]=PeaZip</code></pre></div><p>suivi d&#039;un :</p><div class="codebox"><pre><code>update-desktop-database ~/.local/share/applications</code></pre></div><p>J&#039;ai à nouveau viré file-roller :</p><div class="codebox"><pre><code>sudo apt-get purge file-roller</code></pre></div><p>J&#039;ai réouvert Thunar... Et j&#039;ai pu créer une archive, la décompresser dans le même dossier, et la décompresser dans un autre dossier.</p><p>Ouf ! <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (The Uploader)]]></author>
			<pubDate>Sat, 17 Nov 2012 16:25:49 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11544351#p11544351</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11540781#p11540781</link>
			<description><![CDATA[<p>Le PPA, c&#039;est parce que je ne le trouvais pas dans les dépôts de la 12.04. ^^</p><div class="quotebox"><cite>Draky a écrit&#160;:</cite><blockquote><div><p>Je passe par un gksudo thunar pour gérer les fichiers sinon <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p></div></blockquote></div><p>Oui, c&#039;est plus prudent.</p><p>Tu peux aussi purger et réinstaller le plugin (thunar-archive-plugin) pour être sûr de repartir d&#039;un truc propre.</p>]]></description>
			<author><![CDATA[dummy@example.com (The Uploader)]]></author>
			<pubDate>Sat, 17 Nov 2012 11:55:09 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11540781#p11540781</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11538731#p11538731</link>
			<description><![CDATA[<p>Alors en ayant vu ton message, j&#039;ai installé le PPA upubuntu, purger Peazip et réinstallé et là il l&#039;a bien pris du PPA (mais sinon il existe dans un dépôt &quot;standard&quot;.<br />Le PPA xfcedev, c&#039;est pour le bug des volumes en double sur le bureau donc thunar en dev et xfcesettings corrigent ça.</p><p>Je ferais en virant les fichiers .tap et .desktop.<br />Je passe par un gksudo thunar pour gérer les fichiers sinon <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Prochain accès à l&#039;ordi : lundi 22h <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Draky)]]></author>
			<pubDate>Sat, 17 Nov 2012 09:19:56 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11538731#p11538731</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11538131#p11538131</link>
			<description><![CDATA[<p>J&#039;essaierai tout à l&#039;heure avec une machine virtuelle de xubuntu 12.10 + le ppa xfce dev.</p><p>Tu as bien installé peazip avec le PPA cité au dessus ? Ou il est directement dans les dépôts de la 12.10 ?</p><div class="quotebox"><cite>Draky a écrit&#160;:</cite><blockquote><div><p>Du coup, que ça soit peazip ou file-roller, ça plante.</p></div></blockquote></div><div class="codebox"><pre><code>sudo apt-get purge file-roller</code></pre></div><div class="codebox"><pre><code>sudo apt-get purge peazip</code></pre></div><div class="codebox"><pre><code>sudo rm /usr/lib/i386-linux-gnu/thunar-archive-plugin/peazip.tap</code></pre></div><p>Et vire ce que tu à pu mettre comme fichiers .desktop liés à peazip dans /usr/share/applications et ~/.local/share/applications/</p><p>Tout ça pour repartir de zéro.</p>]]></description>
			<author><![CDATA[dummy@example.com (The Uploader)]]></author>
			<pubDate>Sat, 17 Nov 2012 08:20:56 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11538131#p11538131</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11536611#p11536611</link>
			<description><![CDATA[<p>12.10 avec le ppa xfcedev donc thunar idem que toi.<br />Vais refaire le tap pour voir et le desktop.</p><p>EDIT : bon ben ça marche pas.<br />Et j&#039;ai bien refait tout ce que tu as écrit dans ton message juste au-dessus <img src="http://forum.ubuntu-fr.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>Je ne vois pas là.</p><p>Du coup, que ça soit peazip ou file-roller, ça plante.</p>]]></description>
			<author><![CDATA[dummy@example.com (Draky)]]></author>
			<pubDate>Sat, 17 Nov 2012 00:29:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11536611#p11536611</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11536131#p11536131</link>
			<description><![CDATA[<p>Quelle version de Xubuntu as-tu ?</p><p>Je suis en train de faire une machine virtuelle pour avoir des conditions de tests plus proche (vu que jusqu&#039;ici j&#039;étais sous Archlinux avec Xfce 4.10 et Thunar 1.5.2).</p><p>Sinon pour ton dernier message, je ne vois pas trop pour le moment. Si ce n&#039;est de <strong>repartir de zéro</strong>, Car j&#039;ai déjà une machine virtuelle toute neuve de Xubuntu 12.04, et ce qui suit a fonctionné :</p><p>D&#039;abord, j&#039;y ai installé peazip à partir d&#039;un ppa :</p><div class="codebox"><pre><code>sudo add-apt-repository ppa:upubuntu-com/ppa
sudo apt-get update
sudo apt-get install peazip</code></pre></div><p>J&#039;ai viré file-roller </p><div class="codebox"><pre><code>sudo apt-get purge file-roller</code></pre></div><p>J&#039;ai créé /usr/lib/i386-linux-gnu/thunar-archive-plugin/peazip.tap avec ceci pour contenu :</p><div class="codebox"><pre><code>#!/bin/sh 
# determine the action and the folder, &quot;$@&quot; then contains only the files 
action=$1; shift; 
folder=$1; shift; 
 
# check the action 
case $action in 
create) 
       exec peazip -add2archive &quot;$@&quot; 
       ;; 
 
extract-here) 
       exec peazip -ext2here &quot;$@&quot; 
       ;; 
 
extract-to) 
       exec peazip -ext2to &quot;$@&quot; 
       ;; 
 
*) 
       echo &quot;Unsupported action &#039;$action&#039;&quot; &gt;&amp;2 
       exit 1 
esac</code></pre></div><p>Un coup de chmod :</p><div class="codebox"><pre><code>sudo chmod +x /usr/lib/i386-linux-gnu/thunar-archive-plugin/peazip.tap</code></pre></div><p>Et créé ~/.local/share/applications/peazip.desktop avec le contenu suivant :</p><div class="codebox"><pre><code>[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=PeaZip
MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;application/x-archive;
GenericName=Archiving Tool
Exec=peazip %F
Icon=peazip
Type=Application
Terminal=false
Categories=GTK;Utility;System;Archiving;</code></pre></div><p>suivi d&#039;un : </p><div class="codebox"><pre><code>update-desktop-database ~/.local/share/applications</code></pre></div><p>Dans ma machine virtuelle, après avoir fait tout ce qui est au dessus, j&#039;ai pu faire dans Thunar :<br />-créer une archive<br />-utiliser l&#039;action &quot;Extraire ici&quot;<br />-utiliser l&#039;action &quot;Extraire vers...&quot;</p><p><img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (The Uploader)]]></author>
			<pubDate>Fri, 16 Nov 2012 23:31:33 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11536131#p11536131</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11535321#p11535321</link>
			<description><![CDATA[<p>Pfiou, alors j&#039;ai du me mélanger les pinceaux parce que j&#039;ai rien en fait <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>Voici les fichiers que j&#039;ai avec emplacement et contenus :</p><p>dans /usr/share/applications :</p><p>- thunar-sendto-peazip.desktop</p><div class="codebox"><pre><code>[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
#Name=Archive using PeaZip
Name=Archive (PeaZip)
Icon=peazip
#Exec=peazip %F
Exec=peazip -add2archive %F</code></pre></div><p>- peazip.desktop</p><div class="codebox"><pre class="vscroll"><code>[Desktop Entry]
Version=1.0
Name=PeaZip
MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;application/x-archive;
GenericName=Archiving Tool
Exec=peazip %F
Icon=peazip
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=GTK;Utility;System;Archiving;
X-Desktop-File-Install-Version=0.20
#Actions=peazipextfolder;peazipexthere;peazipext;peazipextto;
Actions=peazipextfolder;peazipextto;

[Desktop Action peazipextfolder]
Exec=peazip -ext2folder %F
Name=Extract to _Folder
Icon=tap-extract

[Desktop Action peazipexthere]
Exec=peazip -ext2here %f
Name=Extract _Here
#Icon=tar
Icon=tap-extract

[Desktop Action peazipext]
Exec=peazip -ext2full %f
Name=Extract (PeaZip)
Icon=tap-extract-to

[Desktop Action peazipextto]
Exec=peazip -ext2to %f
Name=Extract _To...
Icon=tap-extract-to</code></pre></div><p>dans /usr/lib/i386-linux-gnu/thunar-archive-plugin/</p><p>- peazip.tap</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
#
# vi:set et ai sw=2 sts=2 ts=2:
# -
# peazip.tap - Wrapper script to create and extract archive files
#                   in Thunar, via the thunar-archive-plugin, using the
#                   peazip archive manager.
#
# Copyright (c) 2006 Benedikt Meurer &lt;benny@xfce.org&gt;
# Copyright (c) 2011 Jannis Pohlmann &lt;jannis@xfce.org&gt;
#
# 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., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, 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 file-roller &quot;--default-dir=$folder&quot; --add &quot;$@&quot;
	exec peazip -add2archive &quot;$@&quot;
	;;

extract-here)
#	exec file-roller &quot;--extract-to=$(pwd)&quot; --extract-here --force &quot;$@&quot;
	exec peazip -ext2here &quot;$@&quot;
	;;

extract-to)
#	exec file-roller &quot;--default-dir=$folder&quot; --extract &quot;$@&quot;
	exec peazip -ext2to &quot;$folder&quot; &quot;$@&quot;
	;;

*)
	echo &quot;Unsupported action &#039;$action&#039;&quot; &gt;&amp;2
	exit 1
esac</code></pre></div><p>Au final, je fais un clic droit sur un fichier PDF puis &quot;créer une archive&quot; et ça me donne &quot;Aucun gestionnaire blabla&quot;...<br />Et je n&#039;ai pas de commandes peazip dans &quot;Envoyer vers&quot;...</p><p>J&#039;ai dû louper un truc non ?<br />J&#039;ai carrément rebooter après les modifs de fichier et la commande &quot;sudo update desktop...&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (Draky)]]></author>
			<pubDate>Fri, 16 Nov 2012 21:46:35 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11535321#p11535321</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11529121#p11529121</link>
			<description><![CDATA[<p>En fait pour faire fonctionner l&#039;action &quot;créer une archive&quot;, il suffit de copier la ligne MimeType= de file-roller.desktop dans peazip.desktop (même si c&#039;est un peu bourrin), ce qui donnerait chez toi :</p><div class="codebox"><pre><code>[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=PeaZip
MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;application/x-archive;
GenericName=Archiving Tool
Exec=peazip %F
Icon=peazip.png
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=GTK;KDE;Utility;System;Archiving;
Name[en_US]=PeaZip</code></pre></div><p>suivi d&#039;un :</p><div class="codebox"><pre><code>sudo update-desktop-database /usr/share/applications</code></pre></div><p>Et tout fonctionne. <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Quant au mail que j&#039;ai reçu, ça permet d&#039;utiliser 4 actions au lieu de 3 à partir du menu &quot;Envoyer vers...&quot;, ce qui est sympa aussi. <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (The Uploader)]]></author>
			<pubDate>Fri, 16 Nov 2012 10:03:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11529121#p11529121</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11529081#p11529081</link>
			<description><![CDATA[<p>Ha en effet, ça à l&#039;air plus simple.</p><p>Vais tâcher de tester ce soir.</p><p>Merci <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Draky)]]></author>
			<pubDate>Fri, 16 Nov 2012 09:59:59 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11529081#p11529081</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Remplacement de File Roller par Peazip en contextuel]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11528421#p11528421</link>
			<description><![CDATA[<p>Avec un fichier /usr/share/applications/peazip.desktop modifié, ça fonctionne :</p><div class="codebox"><pre><code>[Desktop Entry]
Version=1.0
Name=PeaZip
MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;application/x-archive;
#MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;
GenericName=Archiving Tool
TryExec=peazip
StartupNotify=true
Exec=peazip %F
Icon=peazip
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=GTK;GNOME;Utility;Archiving;Compression;
#X-Desktop-File-Install-Version=0.20</code></pre></div><p>J&#039;ai en outre reçu le mail suivant, qui semble indiquer (je l&#039;ai survolé pour le moment) une manière de rajouter des actions au menu &quot;Envoyers vers...&quot; <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> :</p><div class="quotebox"><cite>Genghis Khan a écrit&#160;:</cite><blockquote><div><p>Hello Maximilien,</p><p>The following is a different approach to utilize PeaZip from the<br />context menu and the Send To menu of Thunar.</p><br /><p>Add archive<br />-----------<br />To create an archive, you can utilize the Send To menu:<br />~/.local/share/Thunar/sendto/thunar-sendto-peazip.desktop</p><br /><p>Extract archive<br />---------------<br />Add the needed actions to peazip.desktop file:<br />~/.local/share/applications/peazip.desktop</p><p>There are two forms of &quot;Extract To...&quot;<br /> -ext2to: extract archive(s) to specified folder;<br /> -ext2full: extract archive(s), allowing to specify i/o<br /> options, password and keyfile;</p><p>There are two forms of &quot;Extract Here&quot;<br /> -ext2here: extract archive(s) here;<br /> -ext2folder: extract archive(s) here, each in a new folder named<br /> after the archive;</p><p>ext2to and ext2folder are enabled.</p><p>To enable all the rest, replace this line:<br />Actions=peazipextfolder;peazipextto;</p><p>with:<br />Actions=peazipextfolder;peazipexthere;peazipext;peazipextto;</p><p>All relevant files are attached.</p><br /><p>On Fri, 16 Nov 2012 00:35:07 +0100<br />Maximilien Noal &lt;noal.maximilien@gmail.com&gt; wrote:</p><p>&gt; Hello,<br />&gt;<br />&gt; I installed the archive manager peazip, and removed my previous<br />&gt; archive manager (file-roller). I created the executable text file<br />&gt; peazip.tap in /usr/lib/xfce4/thunar-archive-plugin, which contains<br />&gt; the following :<br />&gt;<br />&gt; #!/bin/sh<br />&gt; # determine the action and the folder, &quot;$@&quot; then contains only the<br />&gt; files action=$1; shift;<br />&gt; folder=$1; shift;<br />&gt;<br />&gt; # check the action<br />&gt; case $action in<br />&gt; create)<br />&gt; exec peazip -add2archive &quot;$@&quot;<br />&gt; ;;<br />&gt;<br />&gt; extract-here)<br />&gt; exec peazip &quot;-ext2here&quot; &quot;$@&quot;<br />&gt; ;;<br />&gt;<br />&gt; extract-to)<br />&gt; exec peazip -ext2to &quot;$@&quot;<br />&gt; ;;<br />&gt;<br />&gt; *)<br />&gt; echo &quot;Unsupported action &#039;$action&#039;&quot; &gt;&amp;2<br />&gt; exit 1<br />&gt; esac<br />&gt;<br />&gt; All the actions work in Thunar, except for the create action : it<br />&gt; says that no archive manager were found.<br />&gt;<br />&gt; Now, if I understand correctly the thunar-archive-plugin README file,<br />&gt; it says:<br />&gt; - the basename should be the same (OK : <br />&gt; /usr/share/applications/peazip.desktop &lt;-&gt; <br />&gt; /usr/lib/xfce4/thunar-archive-plugin/peazip.tap)<br />&gt;<br />&gt; - the .desktop file should contain all the necessary MIME types. That <br />&gt; seems OK to me (see attached peazip.desktop file)<br />&gt;<br />&gt; - be sure to run &quot;update-desktop-database<br />&gt; $prefix/share/applications&quot; (I assume that pacman already did it. I<br />&gt; did &quot;sudo update-desktop-database /usr/share/applications/&quot;. No<br />&gt; errors were reported, but it changed nothing).<br />&gt;<br />&gt; I don&#039;t know what I&#039;m doing wrong, everything seems OK to me. The<br />&gt; create action works fine in a terminal instance.<br />&gt;<br />&gt; Can someone please tell me what am I missing ?<br />&gt;<br />&gt; Regards,<br />&gt; Max</p><br /><p>-- Proper English <a href="http://www.reddit.com/r/proper">www.reddit.com/r/proper</a> 4 teh lulz... <a href="http://email.is-not-s.ms">http://email.is-not-s.ms</a></p></div></blockquote></div><p>Fichiers attachés :<br />- thunar-sendto-peazip.desktop</p><div class="codebox"><pre><code>[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
#Name=Archive using PeaZip
Name=Archive (PeaZip)
Icon=peazip
#Exec=peazip %F
Exec=peazip -add2archive %F</code></pre></div><p>- peazip.desktop (qu&#039;on peut mettre dans ~/.local/share/applications/)</p><div class="codebox"><pre class="vscroll"><code>[Desktop Entry]
Version=1.0
Name=PeaZip
MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;
GenericName=Archiving Tool
Exec=peazip %F
Icon=peazip
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=GTK;Utility;System;Archiving;
X-Desktop-File-Install-Version=0.20
#Actions=peazipextfolder;peazipexthere;peazipext;peazipextto;
Actions=peazipextfolder;peazipextto;

[Desktop Action peazipextfolder]
Exec=peazip -ext2folder %F
Name=Extract to _Folder
Icon=tap-extract

[Desktop Action peazipexthere]
Exec=peazip -ext2here %f
Name=Extract _Here
#Icon=tar
Icon=tap-extract

[Desktop Action peazipext]
Exec=peazip -ext2full %f
Name=Extract (PeaZip)
Icon=tap-extract-to

[Desktop Action peazipextto]
Exec=peazip -ext2to %f
Name=Extract _To...
Icon=tap-extract-to</code></pre></div><p><img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (The Uploader)]]></author>
			<pubDate>Fri, 16 Nov 2012 08:32:28 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11528421#p11528421</guid>
		</item>
	</channel>
</rss>
