Pages : 1
#1 Le 15/11/2012, à 21:41
- Draky
Remplacement de File Roller par Peazip en contextuel
Salut
Chez moi, pour une raison inconnue, un clic-droit puis extraire sur une archive compressée plante file roller.
Seule solution : ouvrir le fichier compressé dans file roller puis extraire et ensuite quitter.
J'ai installé Peazip et viré file roller, mais du coup le clic droit des actions liées à file roller me dit qu'il n'ya plus rien (extraire ou créer une archive)
Quelqu'un pourrait me dire comment passer les commande contextuelle avec peazip ?
Merci
Hors ligne
#2 Le 16/11/2012, à 00:05
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
Salut
Le greffon pour les archives de Thunar prend en charge file-roller et Ark. Pour les autres (Squeeze, XArchiver, ...), il faut rajouter le support à l'aide d'un script dans /usr/lib/xfce4/thunar-archive-plugin/ :
On peut prendre le script pour file-roller (/usr/lib/xfce4/thunar-archive-plugin/file-roller.tap) en tant qu'exemple :
#!/bin/sh
#
# vi:set et ai sw=2 sts=2 ts=2:
# -
# file-roller.tap - Wrapper script to create and extract archive files
# in Thunar, via the thunar-archive-plugin, using the
# file-roller archive manager.
#
# Copyright (c) 2006 Benedikt Meurer <benny@xfce.org>
# Copyright (c) 2011 Jannis Pohlmann <jannis@xfce.org>
#
# 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 "--default-dir=$folder" --add "$@"
;;
extract-here)
exec file-roller "--extract-to=$(pwd)" --extract-here --force "$@"
;;
extract-to)
exec file-roller "--default-dir=$folder" --extract "$@"
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
Ça m'a pas l'air très compliqué.
Un "patron" nommé template.tap plus descriptif est aussi fourni pour servir de base afin de créer le script :
#!/bin/sh
#
# template.tap - Template for a wrapper script to create and extract
# archive files in Thunar, via the thunar-archive-plugin.
# Use this file as a base to create .tap files for other
# archive managers.
#
# $Id$
#
# Copyright (c) 2006 Benedikt Meurer <benny@xfce.org>.
#
# 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., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
#
# determine the action and the folder, "$@" (don't forget the
# double-quotes, otherwise files with spaces will not be handled
# properly) then contains only the files
action=$1; shift;
folder=$1; shift;
# check the action
case $action in
create)
# Invoke the archive manager with parameters to create
# a new archive with the files in "$@". The $folder
# should be used as a suggestion for the user where
# to put the new archive to.
;;
extract-here)
# Invoke the archive manager with parameters to extract
# the archive files in "$@" to the $folder. The archive
# manager should start extraction immediately and do not
# popup up any confirmation or file chooser dialogs.
;;
extract-to)
# Invoke the archive manager with parameters to extract
# the archive files in "$@". The archive manager should
# prompt the user with a folder chooser dialog, where
# $folder can be used as a suggestion.
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
Si on fouille sur le net, on trouve le même sujet sur le forum Debian ainsi qu'un fichier .tap pour XArchiver :
# 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 xarchiver --new "$@"
;;
extract-here)
exec xarchiver "--extract-to=$folder" "$@"
;;
extract-to)
exec xarchiver --extract "$@"
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
On voit que dans tous les cas le script change peu et ne fait que quelques lignes.
Le README du plugin en dit un peu plus :
Supported archive managers
==========================thunar-archive-plugin currently supports file-roller (the GNOME archive manager)
and ark (the KDE archive manager), but support for additional archive managers
can be easily added.To add support for a new archive manager, all you need to do is to install
the .desktop file - with the list of supported mime types - for the archive
manager to the $(datadir)/applications/ folder (as usual), and in addition,
install a .tap file to $(libexecdir)/thunar-archive-plugin/, which provides
a wrapper script that invokes the archive manager with the appropriate
parameters for the actions "Create Archive", "Extract Here" and "Extract To".The .tap and .desktop files should have the same basename, otherwise the
thunar-archive-plugin is not able to find the appropriate .tap file for an
archive manager. For example, if the name of the .desktop file is ark.desktop,
the .tap file must be named ark.tap.See the scripts/ directory for examples of how to create said .tap files. The
template.tap file should provide a good starting point.Note that the thunar-archive-plugin takes the applications from the desktop
database, so after installing new archive managers in $prefix (i.e. /usr or
/usr/local), make sure to runupdate-desktop-database $prefix/share/applications
Most modern packagement systems will do this for you automatically, but if
you are installing archive managers manually, you may need to run the above
command first, otherwise you will get an error message telling you that no
support archive managers were found on your system.
La documentation de peazip donne ceci quant aux options qu'il accepte en ligne de commande :
The full list of strings accepted as quick link to PeaZip functions when passed as first parameter is:
-add2archive: add to a new archive and open PeaZip GUI to set archive’s type and options;
-add2archive-add as -add2archive, but add to existing archive (if found)
-add2archive-update as previous, but update older files only
-add2pea: add to a new .pea archive;
-add2crypt: add to a new encrypted .pea archive;
-add2split: raw split a single input file;
-add2wipe: securely delete selected file(s);
-add2compare: byte to byte compare two files;
-add27z: add to a new .7z archive;
-add27zmail: add to a new .7z archive and attach it to a mail (requires compatible mail client) *
38-add2separate7z: add each input to a separate new .7z archive;
-add2sfx7z: add to a new self extracting 7z archive (.exe);
-add2sfx7zmail: add to a new self extracting archive and attach it to a mail (requires compatible mail client) *
-add2zip: add to a new .zip archive;
-add2zipmail: add to a new .zip archive and attach it to a mail (requires compatible mail client) *
-add2separatezip: add each input to a separate new .zip archive;
-ext2browse: open (and browse if applicable) the archive(s) in PeaZip GUI;
-ext2browsepath: browse the selected folder (or its path, if a file is selected) in PeaZip
-ext2here: extract archive(s) here;
-ext2folder: extract archive(s) here, each in a new folder named after the archive;
-ext2full: extract archive(s), allowing to specify i/o options, password and keyfile;
-ext2to: extract archive(s) to specified folder;
-ext2tofolder: extract archive(s) to specified folder, each in a new folder named after the archive;
-ext2list: list archive(s) content, to quickly look what is in the archive;
-ext2test: test archive(s) content;
-ext2main: extract archives from main applications “Archive extraction” interface;
-ext2commandprompt: open the command prompt in the selected folder (or in its path, if a file is selected)
-ext2openpwtest requires password as paramstr(2) (always delimited) and archive’s full name as paramstr(3): try
to list the archive and terminate with exit code 0 if archive is not encrypted, 1 if it is encrypted, 2 if it is non
readable (corrupted or with encrypted file list), -1 if archive is not found.
-peazipreset: reset PeaZip configuration, as Options > Reset button; can resolve unexpected problems with
configuration, restarting the application with factory settings
Au bout de quelques minutes, j'ai pu crée le bon fichier peazip.tap
#!/bin/sh
# 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 peazip -add2archive "$@"
;;
extract-here)
exec peazip "-ext2here" "$@"
;;
extract-to)
exec peazip -ext2to "$@"
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
A sauvegarder dans ~/peazip.tap
Il doit être exécutable :
chmod +x ~/peazip.tap
Et être déplacé dans /usr/lib/xfce4/thunar-archive-plugin (bon c'est en tout cas le chemin chez moi sous Archlinux, c'est peut-être différent sous Xubuntu).
Maintenant il me reste un problème : Ajouter un fichier à une archive dit "aucun gestionnaire d'archive trouvé". Un problème avec /usr/share/applications/peazip.desktop ?
Pourtant le fichier à l'air bon, et il contient tous les types MIME qu'il faut. Aussi le nom de base (peazip) est bien le même entre peazip.desktop et peazip.tap. J'ai même exécuté "sudo update-desktop-database usr/share/applications/". Enfin, la commande correspondante dans le script semble bonne.
Je ne sais pas trop pour le moment d'où vient ce dernier petit problème...
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#3 Le 16/11/2012, à 00:48
- Draky
Re : Remplacement de File Roller par Peazip en contextuel
Ha bah tu modifies au fur et à mesure, car j'étais là en train de créer le .tap
On est arrivé à peu près au même résultat, voici mon .tap, qui se met dans /usr/lib/i386-linux-gnu/thunar-archive-plugin/
#!/bin/sh
#
# vi:set et ai sw=2 sts=2 ts=2:
# -
# file-roller.tap - Wrapper script to create and extract archive files
# in Thunar, via the thunar-archive-plugin, using the
# file-roller archive manager.
#
# Copyright (c) 2006 Benedikt Meurer <benny@xfce.org>
# Copyright (c) 2011 Jannis Pohlmann <jannis@xfce.org>
#
# 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 "--default-dir=$folder" --add "$@"
exec peazip -add2archive "$@"
;;
extract-here)
# exec file-roller "--extract-to=$(pwd)" --extract-here --force "$@"
exec peazip -ext2here "$@"
;;
extract-to)
# exec file-roller "--default-dir=$folder" --extract "$@"
exec peazip -ext2to "$folder" "$@"
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
Et voici mon peazip.desktop que j'ai mis dans /usr/share/applications
[Desktop Entry]
Version=1.0
Encoding=UTF-8
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.png
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=GTK;KDE;Utility;System;Archiving;
Name[en_US]=PeaZip
Je ne savais pas qu'il fallait chmoder.
Et en plus, j'ai le même souci de "Aucun gestionnaire..."
Dernière modification par Draky (Le 16/11/2012, à 00:53)
Hors ligne
#4 Le 16/11/2012, à 00:54
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
[...] exec peazip -ext2to "$folder" "$@" [...]
J'avais ça aussi pendant un moment pour l'action "Extraire vers..." mais ça ne fonctionnait pas, il faut ce que j'ai mis au dessus.
Je ne savais pas qu'il fallait chmoder.
Ben ceux existant dans le dossier avaient l'attribut exécutable. ^^
Sinon, ton fichier .desktop semble être 99% pareil au mien :
[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
Si je le compare à celui de file-roller, je ne vois rien de "spécial" en plus :
[Desktop Entry]
Name=Archive Manager
Name[af]=Argiefbestuurder
Name[am]=የመዝገብ ቤት መቆጣጠሪያ
Name[an]=Chestor d'archivadors
Name[ar]=مدير الأرشيفات
Name[as]=আৰ্কাইভ ব্যৱস্থাপক
Name[ast]=Xestor d'archivadores
Name[az]=Arxiv İdarəçisi
Name[be]=Кіраўнік архіваў
Name[be@latin]=Archivaryjus
Name[bg]=Работа с архиви
Name[bn]=আর্কাইভ ম্যানেজার
Name[bn_IN]=আর্কাইভ পরিচালন ব্যবস্থা
Name[br]=Ardoer dielloù
Name[bs]=Upravitelj arhivama
Name[ca]=Gestor d'arxius
Name[ca@valencia]=Gestor d'arxius
Name[cs]=Správa archivů
Name[csb]=Menedżera archiwów
Name[cy]=Rheolydd Archifau
Name[da]=Arkivhåndtering
Name[de]=Archivmanager
Name[dz]=ཡིག་མཛོད་འཛིན་སྐྱོང་པ།
Name[el]=Διαχειριστής συμπιεσμένων αρχείων
Name[en@shaw]=???? ??????
Name[en_CA]=Archive Manager
Name[en_GB]=Archive Manager
Name[eo]=Arkivo-administrilo
Name[es]=Gestor de archivadores
Name[et]=Arhiivihaldur
Name[eu]=Artxibo-kudeatzailea
Name[fa]=مدیر آرشیو
Name[fi]=Pakettienkäsittelyohjelma
Name[fr]=Gestionnaire d'archives
Name[fur]=Gjestôr di archivis
Name[fy]=Triemûnthâldbehear
Name[ga]=Bainisteoir Cartlann
Name[gl]=Xestor de arquivos
Name[gu]=પેટીનો વ્યવસ્થાપક
Name[he]=מנהל הארכיונים
Name[hi]=अभिलेख प्रबंधक
Name[hr]=Upravljanje arhivom
Name[hu]=Archívumkezelő
Name[hy]=Արխիվի մենեջեր
Name[id]=Manajer Arsip
Name[is]=Skráarsafnstjóri
Name[it]=Gestore di archivi
Name[ja]=アーカイブマネージャー
Name[ka]=არქივატორი
Name[kk]=Архивтер басқарушысы
Name[km]=កម្មវិធីគ្រប់គ្រងប័ណ្ណសារ
Name[kn]=ಆರ್ಕೈವ್ ನಿರ್ವಾಹಕ
Name[ko]=압축 관리자
Name[ku]=Rêveberê Arşîvê
Name[lt]=Archyvų tvarkymo programa
Name[lv]=Arhīvu pārvaldnieks
Name[mai]=अभिलेख प्रबंधक
Name[mg]=Mpandrindra arsiva
Name[mk]=Менаџер на архиви
Name[ml]=ശേഖരപാലകന്
Name[mn]=Архив Менежер
Name[mr]=आर्काइव्ह व्यवस्थापक
Name[ms]=Pengurus Arkib
Name[my]=ဖိုင်ထုပ်မန်နေဂျာ
Name[nb]=Arkivhåndtering
Name[nds]=Archivoppasser
Name[ne]=सङ्ग्रह प्रबन्धक
Name[nl]=Archiefbeheer
Name[nn]=Arkivhandsamar
Name[oc]=Gestionari d'archius
Name[or]=ଅଭିଲେଖ ପରିଚାଳକ
Name[pa]=ਅਕਾਇਵ ਮੈਨੇਜਰ
Name[pl]=Menedżer archiwów
Name[ps]=ارشيو سمبالګر
Name[pt]=Gestor de Arquivos
Name[pt_BR]=Gerenciador de pacotes
Name[ro]=Administrator de arhive
Name[ru]=Менеджер архивов
Name[si]=සංරක්ෂණ කළමණාකරු
Name[sk]=Správca archívov
Name[sl]=Upravljalnik arhivov
Name[sq]=Menazhues arkivësh
Name[sr]=Управљач архивом
Name[sr@ije]=Управљање архивом
Name[sr@latin]=Upravljač arhivom
Name[sv]=Arkivhanterare
Name[ta]=காப்பு மேலாளர்
Name[te]=సంగ్రహ నిర్వాహకం
Name[th]=โปรแกรมจัดการแฟ้มจัดเก็บ
Name[tk]=Arşiw Mudyry
Name[tr]=Arşiv Yöneticisi
Name[ug]=ئارخىپ باشقۇرغۇچ
Name[uk]=Менеджер архівів
Name[ur]=محفوظہ منیجر
Name[ur_PK]=محفوظہ منیجر
Name[vi]=Bộ quản lý kho
Name[xh]=Umphathi Kavimba
Name[zh_CN]=归档管理器
Name[zh_HK]=壓縮檔管理員
Name[zh_TW]=壓縮檔管理員
Name[zu]=Umphathi wengobo yomlando
Comment=Create and modify an archive
Comment[af]=Skep en wysig 'n argief
Comment[an]=Creye y modifique un archivador
Comment[ar]=أنشئ و عدّل أرشيفا
Comment[as]=আৰ্কাইভ সৃষ্টি আৰু পৰিবৰ্তন কৰক
Comment[ast]=Crea y modifica un archivador
Comment[az]=Arxiv yaradın və açın
Comment[be]=Праца з архівамі
Comment[be@latin]=Stvaraj i madyfikuj archivy
Comment[bg]=Създаване и промяна на архив
Comment[bn]=নতুন আর্কাইভ তৈরি ও পরিবর্ধন করা হবে
Comment[bn_IN]=আর্কাইভ নির্মাণ ও পরিবর্তন করুন
Comment[br]=Krouiñ ha daskemmañ un diell
Comment[bs]=Napravi i promijeni arhiv
Comment[ca]=Crea i modifica un arxiu
Comment[ca@valencia]=Crea i modifica un arxiu
Comment[cs]=Vytvářet a upravovat archivy
Comment[csb]=Ùsôdzanié ë zmianë archiwów
Comment[cy]=Creu a newid archif
Comment[da]=Opret og ændr et arkiv
Comment[de]=Archive anlegen und verändern
Comment[dz]=ཡིག་མཛོད་གསར་བསྐྲུན་འབད་ནི་དང་ ལེགས་བཅོས་འབད་ནི།
Comment[el]=Δημιουργία και τροποποίηση ενός συμπιεσμένου αρχείου
Comment[en@shaw]=????? ? ?????? ?? ????
Comment[en_CA]=Create and modify an archive
Comment[en_GB]=Create and modify an archive
Comment[eo]=Krei kaj modifi arkivon
Comment[es]=Cree y modifique un archivador
Comment[et]=Arhiivi loomine ja muutmine
Comment[eu]=Sortu eta aldatu artxibo bat
Comment[fa]=ایجاد و تغییر آرشیو
Comment[fi]=Luo arkisto tai muokkaa arkistoa
Comment[fr]=Créer et modifier des archives
Comment[fur]=Cree e modifiche un archivi
Comment[fy]=Foarmje in triemûnthâld
Comment[ga]=Cruthaigh agus athraigh cartlann
Comment[gl]=Crear e modificar un arquivo
Comment[gu]=પેટી બનાવો અને સુધારો
Comment[he]=יצירה ועדכון של ארכיונים
Comment[hi]=अभिलेख बनाएँ तथा परिवर्धित करें
Comment[hr]=Stvori i izmijeni arhivu
Comment[hu]=Archívum létrehozása és módosítása
Comment[hy]=Կերտել և մոդիֆիկացնել արխիվը
Comment[id]=Membuat dan memodifikasi arsip
Comment[it]=Crea e modifica un archivio
Comment[ja]=アーカイブを作成したり修正します
Comment[ka]=არქივის შექმნა და რედაქტირება
Comment[kk]=Архивті жасау және түзету
Comment[km]=បង្កើត និងកែប្រែប័ណ្ណសារ
Comment[kn]=ಒಂದು ಆರ್ಕೈವನ್ನು ನಿರ್ಮಿಸು ಹಾಗು ಮಾರ್ಪಡಿಸು
Comment[ko]=압축 파일을 만들고 수정합니다
Comment[ku]=Arşîvekê çêbike an jî biguherîne
Comment[lt]=Kurti ir modifikuoti archyvą
Comment[lv]=Izveidot arhīvus un mainīt to saturu
Comment[mai]=अभिलेख बनाबू आओर परिवर्धित करू
Comment[mg]=Mamorona sy manova arsiva
Comment[mk]=Креирај и измени архива
Comment[ml]=ഒരു പുതിയ ശേഖരം നിര്മ്മിക്കുകയോ മാറ്റം വരുത്തുകയോ ചെയ്യുക
Comment[mn]=Архив үүсгэх ба өөрчилөх
Comment[mr]=आर्काइव्ह निर्माण व संपादीत करा
Comment[ms]=Cipta dan ubahsuai arkib
Comment[my]=ဖိုင်ထုပ်ကိုဖန်တီးပြီးပြုပြင်
Comment[nb]=Opprett og endre arkiv
Comment[ne]=एउटा सङ्ग्रह सिर्जना गर्नुहोस् र परिमार्जन गर्नुहोस्
Comment[nl]=Archieven maken en wijzigen
Comment[nn]=Lag og endra arkiv
Comment[oc]=Crear e modificar un archiu
Comment[or]=ଗୋଟିଏ ଅଭିଲେଖକୁ ସ୍ରୁଷ୍ଟି ଏବଂ ରୂପାନ୍ତରିତ କରନ୍ତୁ
Comment[pa]=ਇੱਕ ਅਕਾਇਵ ਬਣਾਓ ਅਤੇ ਸੋਧੋ
Comment[pl]=Tworzenie i modyfikowanie archiwów
Comment[ps]=ارشيو جوړول او بدلول
Comment[pt]=Criar e alterar um arquivo
Comment[pt_BR]=Crie e modifique um pacote
Comment[ro]=Creează și modifică o arhivă
Comment[ru]=Создать или изменить архив
Comment[si]=සංරක්ෂණයක් නිර්මාණය කරන්න සහ වෙනස් කරන්න
Comment[sk]=Vytváranie a úprava archívov
Comment[sl]=Ustvari in spremeni arhiv
Comment[sq]=Krijo dhe ndrysho një arkiv
Comment[sr]=Направите нове и распакујте постојеће архиве
Comment[sr@ije]=Направите и измјените архиву
Comment[sr@latin]=Napravite nove i raspakujte postojeće arhive
Comment[sv]=Skapa och ändra ett arkiv
Comment[ta]=காப்பு உருவாக்குதல் அல்லது திருத்துதல்
Comment[te]=ఒక సంగ్రహమును సృష్టించు మరియు సవరించు
Comment[th]=สร้างและแก้ไขแฟ้มจัดเก็บ
Comment[tk]=Bir arşiwi bejerip üýtget
Comment[tr]=Bir arşiv yarat ve değiştir
Comment[ug]=ئارخىپ قۇرۇپ ئۆزگەرت
Comment[uk]=Програма створення та зміни архівів
Comment[ur]=محفوظہ بنائیں اور تبدیل کریں
Comment[ur_PK]=محفوظہ بنائیں اور تبدیل کریں
Comment[vi]=Tạo và sửa đổi kho
Comment[xh]=Yakha uze ulungise uvimba
Comment[zh_CN]=创建并修改归档文件
Comment[zh_HK]=建立及更改壓縮檔
Comment[zh_TW]=建立及更改壓縮檔
Comment[zu]=Dala futhi ulungise ingobo yomlando
TryExec=file-roller
Exec=file-roller %U
StartupNotify=true
Terminal=false
Type=Application
Icon=file-roller
Categories=GTK;GNOME;Utility;Archiving;Compression;
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;
X-GNOME-DocPath=file-roller/file-roller.xml
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=file-roller
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.6.2
J'ai envoyé un mail sur la mailing list Xfce pour savoir si quelqu'un avait une idée, parce que là je vois vraiment pas d'où ça vient.
(sur ce, je vais me coucher)
Dernière modification par The Uploader (Le 16/11/2012, à 00:58)
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#5 Le 16/11/2012, à 09:32
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
Avec un fichier /usr/share/applications/peazip.desktop modifié, ça fonctionne :
[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
J'ai en outre reçu le mail suivant, qui semble indiquer (je l'ai survolé pour le moment) une manière de rajouter des actions au menu "Envoyers vers..." :
Hello Maximilien,
The following is a different approach to utilize PeaZip from the
context menu and the Send To menu of Thunar.Add archive
-----------
To create an archive, you can utilize the Send To menu:
~/.local/share/Thunar/sendto/thunar-sendto-peazip.desktopExtract archive
---------------
Add the needed actions to peazip.desktop file:
~/.local/share/applications/peazip.desktopThere are two forms of "Extract To..."
-ext2to: extract archive(s) to specified folder;
-ext2full: extract archive(s), allowing to specify i/o
options, password and keyfile;There are two forms of "Extract Here"
-ext2here: extract archive(s) here;
-ext2folder: extract archive(s) here, each in a new folder named
after the archive;ext2to and ext2folder are enabled.
To enable all the rest, replace this line:
Actions=peazipextfolder;peazipextto;with:
Actions=peazipextfolder;peazipexthere;peazipext;peazipextto;All relevant files are attached.
On Fri, 16 Nov 2012 00:35:07 +0100
Maximilien Noal <noal.maximilien@gmail.com> wrote:> Hello,
>
> I installed the archive manager peazip, and removed my previous
> archive manager (file-roller). I created the executable text file
> peazip.tap in /usr/lib/xfce4/thunar-archive-plugin, which contains
> the following :
>
> #!/bin/sh
> # 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 peazip -add2archive "$@"
> ;;
>
> extract-here)
> exec peazip "-ext2here" "$@"
> ;;
>
> extract-to)
> exec peazip -ext2to "$@"
> ;;
>
> *)
> echo "Unsupported action '$action'" >&2
> exit 1
> esac
>
> All the actions work in Thunar, except for the create action : it
> says that no archive manager were found.
>
> Now, if I understand correctly the thunar-archive-plugin README file,
> it says:
> - the basename should be the same (OK :
> /usr/share/applications/peazip.desktop <->
> /usr/lib/xfce4/thunar-archive-plugin/peazip.tap)
>
> - the .desktop file should contain all the necessary MIME types. That
> seems OK to me (see attached peazip.desktop file)
>
> - be sure to run "update-desktop-database
> $prefix/share/applications" (I assume that pacman already did it. I
> did "sudo update-desktop-database /usr/share/applications/". No
> errors were reported, but it changed nothing).
>
> I don't know what I'm doing wrong, everything seems OK to me. The
> create action works fine in a terminal instance.
>
> Can someone please tell me what am I missing ?
>
> Regards,
> Max-- Proper English www.reddit.com/r/proper 4 teh lulz... http://email.is-not-s.ms
Fichiers attachés :
- thunar-sendto-peazip.desktop
[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
- peazip.desktop (qu'on peut mettre dans ~/.local/share/applications/)
[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
Dernière modification par The Uploader (Le 16/11/2012, à 11:08)
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#6 Le 16/11/2012, à 10:59
- Draky
Re : Remplacement de File Roller par Peazip en contextuel
Ha en effet, ça à l'air plus simple.
Vais tâcher de tester ce soir.
Merci
Hors ligne
#7 Le 16/11/2012, à 11:03
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
En fait pour faire fonctionner l'action "créer une archive", il suffit de copier la ligne MimeType= de file-roller.desktop dans peazip.desktop (même si c'est un peu bourrin), ce qui donnerait chez toi :
[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
suivi d'un :
sudo update-desktop-database /usr/share/applications
Et tout fonctionne.
Quant au mail que j'ai reçu, ça permet d'utiliser 4 actions au lieu de 3 à partir du menu "Envoyer vers...", ce qui est sympa aussi.
Dernière modification par The Uploader (Le 16/11/2012, à 11:10)
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#8 Le 16/11/2012, à 22:46
- Draky
Re : Remplacement de File Roller par Peazip en contextuel
Pfiou, alors j'ai du me mélanger les pinceaux parce que j'ai rien en fait
Voici les fichiers que j'ai avec emplacement et contenus :
dans /usr/share/applications :
- thunar-sendto-peazip.desktop
[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
- peazip.desktop
[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
dans /usr/lib/i386-linux-gnu/thunar-archive-plugin/
- peazip.tap
#!/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 <benny@xfce.org>
# Copyright (c) 2011 Jannis Pohlmann <jannis@xfce.org>
#
# 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 "--default-dir=$folder" --add "$@"
exec peazip -add2archive "$@"
;;
extract-here)
# exec file-roller "--extract-to=$(pwd)" --extract-here --force "$@"
exec peazip -ext2here "$@"
;;
extract-to)
# exec file-roller "--default-dir=$folder" --extract "$@"
exec peazip -ext2to "$folder" "$@"
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
Au final, je fais un clic droit sur un fichier PDF puis "créer une archive" et ça me donne "Aucun gestionnaire blabla"...
Et je n'ai pas de commandes peazip dans "Envoyer vers"...
J'ai dû louper un truc non ?
J'ai carrément rebooter après les modifs de fichier et la commande "sudo update desktop..."
Hors ligne
#9 Le 17/11/2012, à 00:31
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
Quelle version de Xubuntu as-tu ?
Je suis en train de faire une machine virtuelle pour avoir des conditions de tests plus proche (vu que jusqu'ici j'étais sous Archlinux avec Xfce 4.10 et Thunar 1.5.2).
Sinon pour ton dernier message, je ne vois pas trop pour le moment. Si ce n'est de repartir de zéro, Car j'ai déjà une machine virtuelle toute neuve de Xubuntu 12.04, et ce qui suit a fonctionné :
D'abord, j'y ai installé peazip à partir d'un ppa :
sudo add-apt-repository ppa:upubuntu-com/ppa
sudo apt-get update
sudo apt-get install peazip
J'ai viré file-roller
sudo apt-get purge file-roller
J'ai créé /usr/lib/i386-linux-gnu/thunar-archive-plugin/peazip.tap avec ceci pour contenu :
#!/bin/sh
# 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 peazip -add2archive "$@"
;;
extract-here)
exec peazip -ext2here "$@"
;;
extract-to)
exec peazip -ext2to "$@"
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
Un coup de chmod :
sudo chmod +x /usr/lib/i386-linux-gnu/thunar-archive-plugin/peazip.tap
Et créé ~/.local/share/applications/peazip.desktop avec le contenu suivant :
[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;
suivi d'un :
update-desktop-database ~/.local/share/applications
Dans ma machine virtuelle, après avoir fait tout ce qui est au dessus, j'ai pu faire dans Thunar :
-créer une archive
-utiliser l'action "Extraire ici"
-utiliser l'action "Extraire vers..."
Dernière modification par The Uploader (Le 17/11/2012, à 00:35)
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#10 Le 17/11/2012, à 01:29
- Draky
Re : Remplacement de File Roller par Peazip en contextuel
12.10 avec le ppa xfcedev donc thunar idem que toi.
Vais refaire le tap pour voir et le desktop.
EDIT : bon ben ça marche pas.
Et j'ai bien refait tout ce que tu as écrit dans ton message juste au-dessus
Je ne vois pas là.
Du coup, que ça soit peazip ou file-roller, ça plante.
Dernière modification par Draky (Le 17/11/2012, à 08:38)
Hors ligne
#11 Le 17/11/2012, à 09:20
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
J'essaierai tout à l'heure avec une machine virtuelle de xubuntu 12.10 + le ppa xfce dev.
Tu as bien installé peazip avec le PPA cité au dessus ? Ou il est directement dans les dépôts de la 12.10 ?
Du coup, que ça soit peazip ou file-roller, ça plante.
sudo apt-get purge file-roller
sudo apt-get purge peazip
sudo rm /usr/lib/i386-linux-gnu/thunar-archive-plugin/peazip.tap
Et vire ce que tu à pu mettre comme fichiers .desktop liés à peazip dans /usr/share/applications et ~/.local/share/applications/
Tout ça pour repartir de zéro.
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#12 Le 17/11/2012, à 10:19
- Draky
Re : Remplacement de File Roller par Peazip en contextuel
Alors en ayant vu ton message, j'ai installé le PPA upubuntu, purger Peazip et réinstallé et là il l'a bien pris du PPA (mais sinon il existe dans un dépôt "standard".
Le PPA xfcedev, c'est pour le bug des volumes en double sur le bureau donc thunar en dev et xfcesettings corrigent ça.
Je ferais en virant les fichiers .tap et .desktop.
Je passe par un gksudo thunar pour gérer les fichiers sinon
Prochain accès à l'ordi : lundi 22h
Hors ligne
#13 Le 17/11/2012, à 12:55
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
Le PPA, c'est parce que je ne le trouvais pas dans les dépôts de la 12.04. ^^
Je passe par un gksudo thunar pour gérer les fichiers sinon
Oui, c'est plus prudent.
Tu peux aussi purger et réinstaller le plugin (thunar-archive-plugin) pour être sûr de repartir d'un truc propre.
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#14 Le 17/11/2012, à 17:25
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
J'ai fait une machine virtuelle de Xubuntu 12.10, j'ai peazip qui fonctionne avec le plugin des archives pour Thunar, voici ce que j'ai fait pour y arriver :
Installation du PPA Xfce 4.12 pour tenter d'avoir les mêmes conditions de test que chez toi :
sudo apt-add-repository ppa:xubuntu-dev/xfce-4.12
sudo apt-get update
sudo apt-get dist-upgrade
+ redémarrage
J'ai viré file-roller :
sudo apt-get purge file-roller
Comme je ne trouvais vraiment pas peazip dans les dépôts, je l'ai installé depuis le PPA :
sudo apt-add-repository ppa:upubuntu-com/ppa
sudo apt-get update
sudo apt-get install peazip
J'ai vu qu'il y avait un fichier PeaZip.desktop dans /usr/share/applications, j'ai donc créé /usr/lib/i386-linux-gnu/thunar-archive-plugin/PeaZip.tap :
#!/bin/sh
# 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 peazip -add2archive "$@"
;;
extract-here)
exec peazip -ext2here "$@"
;;
extract-to)
exec peazip -ext2to "$@"
;;
*)
echo "Unsupported action '$action'" >&2
exit 1
esac
J'l'ai rendu exécutable :
sudo chmod +x /usr/lib/i386-linux-gnu/thunar-archive-plugin/PeaZip.tap
J'ai tenté de créer une archive : PAM ! Erreur "aucun gestionnaire d'archive trouvé". C'est encore une fois la ligne "MimeType=" de /usr/share/applications/PeaZip.desktop qui est fausse !
J'ai donc créé le sous-dossier ~/.local/share/applications :
mkdir ~/.local/share/applications
J'ai réinstallé file-roller pour pouvoir prendre la ligne "MimeType=" de son fichier /usr/share/applications/file-roller.desktop :
sudo apt-get install file-roller
J'ai créé le fichier ~/.local/share/applications/PeaZip.desktop :
cp /usr/share/applications/PeaZip.desktop ~/.local/share/applications
J'ai ouvert ~/.local/share/applications/PeaZip.desktop pour y corriger la ligne "MimeType=" en prenant celle de file-roller.desktop :
[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
suivi d'un :
update-desktop-database ~/.local/share/applications
J'ai à nouveau viré file-roller :
sudo apt-get purge file-roller
J'ai réouvert Thunar... Et j'ai pu créer une archive, la décompresser dans le même dossier, et la décompresser dans un autre dossier.
Ouf !
Dernière modification par The Uploader (Le 18/11/2012, à 16:57)
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#15 Le 17/11/2012, à 20:54
- mr_pouit
Re : Remplacement de File Roller par Peazip en contextuel
J'ai tenté de créer une archive : PAM ! Erreur "aucun gestionnaire d'archive trouvé". C'est encore une fois la ligne "MimeType=" de /usr/share/applications/PeaZip.desktop qui est fausse !
Il manque "application/x-compressed-tar", je pense que c'est pour cela que thunar-archive-plugin l'ignore.
Hors ligne
#16 Le 17/11/2012, à 21:08
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
Merci, ce sera moins bourrin d'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'énervait.
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
#17 Le 20/11/2012, à 21:25
- Draky
Re : Remplacement de File Roller par Peazip en contextuel
Back to business
Bon ça marche !
youhou, merci
Bon j'ai deux questions bonux :
1) pourquoi le manquement d'un seul type mime peut faire foirer ? o.O
2) si j'installe file-roller et peazip, comment le système détermine lequel faut utiliser ?
Hors ligne
#18 Le 20/11/2012, à 23:11
- mr_pouit
Re : Remplacement de File Roller par Peazip en contextuel
1) pourquoi le manquement d'un seul type mime peut faire foirer ? o.O
S'il n'y a pas au moins "application/x-compressed-tar", "application/x-tar", "application/x-zip" et "application/zip" dans le .desktop, thunar-archive-plugin considère que le gestionnaire d'archive ne sait pas gérer assez de formats et l'ignore.
Hors ligne
#19 Le 20/11/2012, à 23:17
- The Uploader
Re : Remplacement de File Roller par Peazip en contextuel
2) si j'installe file-roller et peazip, comment le système détermine lequel faut utiliser ?
D'après la doc', il te demande celui que tu préfère. Mais je ne l'ai jamais vu faire ça chez moi.
- Oldies PC : Intel Pentium 3 @ 800 Mhz sur CM ASUS P2B-F, GeForce 4 Ti4800 SE, Disque Dur Hitachi 160 Go, 512 Mo de RAM, 3DFX Voodoo 2, Sound Blaster 16 ISA PnP, Windows 98 SE / XP)
- Desktop : Intel Core i7 6700K @ 4 GHz sur CM ASUS Z170-P, GeForce GTX 1070, SSD Samsung 850 EVO 1 To, 16 Go de RAM, Disque Dur Seagate Barracuda 3 To, Windows 10
Hors ligne
Pages : 1