--nextPart3144871.NXYsRtnzb3 Content-Type: multipart/mixed; boundary="Boundary-01=_qlaiE1ghSN6qT1m" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_qlaiE1ghSN6qT1m Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 07 June 2006 17:28, James Richard Tyrer wrote: > > Would it be possible to simply have a script that would generate the > > necessary file: "$KDEDIR/share/mimelnk/application/x-scribus": I just wrote one for xdg-utils. If anyone wants to help...I'm wondering how= to=20 embed these xsl chunks into the xdg-mime script and feed it into xsltproc v= ia=20 stdin... README =3D=3D=3D=3D=3D=3D=3D Here you find some XSL transformation scripts for processing mime type definitions in XML format as defined by the Shared MIME-info Database specification [1] [1] http://www.freedesktop.org/wiki/Standards/shared-mime-info-spec =3D=3D=3D Command: xsltproc sharedmime-list.xsl input-file.xml Lists all mimetypes contained in a shared mime Database XML input file =3D=3D=3D Command: xsltproc --stringparam type mime/type sharedmime2mimelnk.xsl=20 input-file.xml Converts the mimetype "mime/type" contained in a shared mime Database XML input file into KDE's mimelnk format. =3D=3D=3D TODO: * Add support for magic entries and convert to KDE magic chunks in share/config/magic/* =2D-=20 Linux Client Architect - Channel Platform Solutions Group - Intel Corporati= on --Boundary-01=_qlaiE1ghSN6qT1m Content-Type: text/x-xslt; charset="utf-8"; name="sharedmime-list.xsl" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sharedmime-list.xsl" --Boundary-01=_qlaiE1ghSN6qT1m Content-Type: text/x-xslt; charset="utf-8"; name="sharedmime2mimelnk.xsl" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sharedmime2mimelnk.xsl" [Desktop Entry] Type=MimeType MimeType= Icon= X-KDE-IsAlso= Patterns= ; Comment= Comment[]= --Boundary-01=_qlaiE1ghSN6qT1m-- --nextPart3144871.NXYsRtnzb3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBEialtN4pvrENfboIRAmuiAJ9QcDSGlhvpup/86KhF8Fz3VdKxkACcDAB7 BGKKdWK98QVIwFW5c4pcY+g= =Oh/L -----END PGP SIGNATURE----- --nextPart3144871.NXYsRtnzb3--