Le coin des remarques, suggestions et bugs à faire remonter.

Image texte brute

#41Messageil y a 9 ans

ewolnux a écrit :J'ai comparé les fichiers x-cd-image.xml et mimetypefixes.xml de Arch et Manjaro => strictement identiques.


Sur ma cinnamon (j'ai fait aucune modif) ils sont identiques
sur ma kde (après modif ) celui dans /application/ est caca (la fin) :
doublons glob mais sans et avec weight="60" pastebin

ps: on a une troisième version !!! dans /usr/share/mime/packages/freedesktop.org.xml (ligne7150 pour moi)

  <mime-type type="application/x-cd-image">
    <comment>raw CD image</comment>
    <comment xml:lang="ar">صورة CD خامة</comment>
    <comment xml:lang="be@latin">suvoraja vyjava CD</comment>
    <comment xml:lang="bg">Изображение — raw CD</comment>
    <comment xml:lang="ca">imatge de CD en cru</comment>
    <comment xml:lang="cs">Surový obraz CD</comment>
    <comment xml:lang="da">rå cd-aftryk</comment>
    <comment xml:lang="de">CD-Roh-Abbild</comment>
    <comment xml:lang="el">εικόνα περιεχομένου ψηφιακού δίσκου</comment>
    <comment xml:lang="en_GB">raw CD image</comment>
    <comment xml:lang="eo">kruda lumdiskbildo</comment>
    <comment xml:lang="es">imagen de CD en bruto</comment>
    <comment xml:lang="eu">CD gordinaren irudia </comment>
    <comment xml:lang="fi">raaka CD-vedos</comment>
    <comment xml:lang="fo">rá CD mynd</comment>
    <comment xml:lang="fr">image CD brute</comment>
    <comment xml:lang="ga">amhíomhá dhlúthdhiosca</comment>
    <comment xml:lang="gl">imaxe de CD en bruto</comment>
    <comment xml:lang="he">תמונת דיסק גולמית</comment>
    <comment xml:lang="hu">nyers CD-lemezkép</comment>
    <comment xml:lang="id">citra CD mentah</comment>
    <comment xml:lang="it">Immagine raw CD</comment>
    <comment xml:lang="ja">生 CD イメージ</comment>
    <comment xml:lang="kk">өңделмеген CD бейнесі</comment>
    <comment xml:lang="ko">CD 이미지</comment>
    <comment xml:lang="lt">raw CD atvaizdis</comment>
    <comment xml:lang="lv">CD jēlattēls</comment>
    <comment xml:lang="ms">Imej CD mentah</comment>
    <comment xml:lang="nb">rått CD-bilde</comment>
    <comment xml:lang="nl">ruw CD-beeldbestand</comment>
    <comment xml:lang="nn">rått CD-bilete</comment>
    <comment xml:lang="pl">Surowy obraz CD</comment>
    <comment xml:lang="pt">imagem em bruto de CD</comment>
    <comment xml:lang="pt_BR">Imagem bruta de CD</comment>
    <comment xml:lang="ro">imagine de CD brută</comment>
    <comment xml:lang="ru">образ компакт-диска</comment>
    <comment xml:lang="sk">Surový obraz CD</comment>
    <comment xml:lang="sl">surovi CD odtis</comment>
    <comment xml:lang="sq">Imazh raw CD</comment>
    <comment xml:lang="sr">сирови отисак ЦД-а</comment>
    <comment xml:lang="sv">rå cd-avbild</comment>
    <comment xml:lang="uk">образ raw CD</comment>
    <comment xml:lang="vi">ảnh đĩa CD thô</comment>
    <comment xml:lang="zh_CN">原始 CD 映像</comment>
    <comment xml:lang="zh_TW">原生 CD 映像</comment>
    <sub-class-of type="application/x-raw-disk-image"/>
    <alias type="application/x-iso9660-image"/>
    <glob pattern="*.iso"/>
    <glob pattern="*.iso9660"/>
  </mime-type>


les fichiers dans /application/ sont générés par update-mime-database a partir de notre dossier /pacquages/
: j'ai créé de nouveaux type mines perso dans /pacquages/, après moulinette(update-mime-database) ils sont passés dans /application/

Donc, le bon fichier qui va être utilisé est dans /application/, est généré par la fusion des 2 entrées reedesktop.org.xml et mimetypefixes.xml
Dernière modification par papajokeil y a 9 ans, modifié au total 3 fois.

Image texte brute

#42Messageil y a 9 ans

je viens de faire, en root :

# cd /usr/share/mime/packages/
# mv mimetypefixes.xml mimetypefixes.xbkpml
# ln -s /usr/share/mime/application/x-cd-image.xml /usr/share/mime/packages/mimetypefixes.xml

Ça a l'air de fonctionner

Image texte brute

#43Messageil y a 9 ans

waitnsea a écrit :Ça a l'air de fonctionner

non
les fichiers dans /application/ sont générés par update-mime-database a partir de notre dossier /pacquages/ (si le type est application/xxxxxxxxx), j'ai fait le test.

par exemple, tu ajoutes dans n'importe quel fichier dans /packquages/ (ou créer un nouveau fichier)

<mime-type type="text/x-pass">
        <comment>txt password</comment>
        <comment xml:lang="fr">texte mot de passe</comment>
        <sub-class-of type="text/plain"/>
        <glob weight="60" pattern="*.pass"/>
        <glob weight="60" pattern="*.passwrd"/>
   <glob pattern=".htpasswd"/>
   <generic-icon name="application-pgp-keys"/>
</mime-type>

sudo update-mime-database /usr/share/mime va générer un fichier x-pass.xml dans le dossier /text/
ps: generic-icon ne fonctionne pas sous kde :censure: par contre fonctionne sous némo et thunar :pompom:
Dernière modification par papajokeil y a 9 ans, modifié au total 2 fois.

Image texte brute

#44Messageil y a 9 ans

OK j'inverse ce que j'ai fait, effectivement, au premier update-mime je risque de tourner en boucle :pleure:
Merci

Image texte brute

#45Messageil y a 9 ans

Je refais une installation bien propre de net-edition+KDE, je verrai s'il y a du mieux.

Quels sont tous les fichiers concernés ?

Image texte brute

#46Messageil y a 9 ans

Je suis sur la nouvelle installation ; après avoir fait ce qui a été dit sur l'inter, c'est bon du premier coup.

Entre cette installation et l'autre, quels sont encore les fichiers concernés ?

Image texte brute

#47Messageil y a 9 ans

tu nous poses une colle, peut-être comparer les 2 commandes entre tes machines?

grep -rn cd-image /usr/share/mime

Image texte brute

#48Messageil y a 9 ans

sur la session où ça va bien :

┌──[20-07-2014 15:34:32] [thierry@pc-thierry] ~ 
└──[$] → grep -rn cd-image /usr/share/mime
/usr/share/mime/globs2:5:60:application/x-cd-image:*.iso9660
/usr/share/mime/globs2:6:60:application/x-cd-image:*.iso
/usr/share/mime/globs2:402:50:application/x-cd-image:*.iso9660
/usr/share/mime/globs2:1007:50:application/x-cd-image:*.iso
/usr/share/mime/types:180:application/x-cd-image
/usr/share/mime/application/x-cd-image.xml:2:<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-cd-image">
/usr/share/mime/packages/freedesktop.org.xml:7152:  <mime-type type="application/x-cd-image">
/usr/share/mime/packages/mimetypefixes.xml:6:  <mime-type type="application/x-cd-image">
/usr/share/mime/globs:5:application/x-cd-image:*.iso9660
/usr/share/mime/globs:6:application/x-cd-image:*.iso
/usr/share/mime/globs:401:application/x-cd-image:*.iso9660
/usr/share/mime/globs:1004:application/x-cd-image:*.iso
Fichier binaire /usr/share/mime/mime.cache correspondant                                                                 
/usr/share/mime/subclasses:8:application/x-cd-image application/x-raw-disk-image
/usr/share/mime/subclasses:9:application/x-cd-image application/x-raw-disk-image
/usr/share/mime/aliases:63:application/x-iso9660-image application/x-cd-image




sur la session où ça va pas :

┌──[20-07-2014 15:39:57] [thierry@pc-thierry] ~ 
└──[$] → grep -rn cd-image /usr/share/mime
/usr/share/mime/packages/mimetypefixes.xml:6:  <mime-type type="application/x-cd-image">
/usr/share/mime/packages/freedesktop.org.xml:7152:  <mime-type type="application/x-cd-image">
/usr/share/mime/globs:3:application/x-cd-image:*.iso
/usr/share/mime/globs:4:application/x-cd-image:*.iso9660
/usr/share/mime/globs:132:application/x-cd-image:*.iso
/usr/share/mime/globs:182:application/x-cd-image:*.iso9660
/usr/share/mime/application/x-cd-image.xml:2:<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-cd-image">
/usr/share/mime/aliases:60:application/x-iso9660-image application/x-cd-image
/usr/share/mime/globs2:3:60:application/x-cd-image:*.iso
/usr/share/mime/globs2:4:60:application/x-cd-image:*.iso9660
/usr/share/mime/globs2:132:50:application/x-cd-image:*.iso
/usr/share/mime/globs2:182:50:application/x-cd-image:*.iso9660
Fichier binaire /usr/share/mime/mime.cache correspondant
/usr/share/mime/subclasses:8:application/x-cd-image application/x-raw-disk-image
/usr/share/mime/subclasses:9:application/x-cd-image application/x-raw-disk-image
/usr/share/mime/types:186:application/x-cd-image

Image texte brute

#49Messageil y a 9 ans

Bonjour

La nouvelle installation a remplacé l'ancienne, ça a permis de faire un peu de ménage, tout est OK.
Répondre