eid-viewer: associate with XML & plain text .eid files

The .eid files are in fact XML, but lack the <?xml...?> declaration that
file(1) seems to expect. At least the viewer now appears as an option in
most GUIs.
This commit is contained in:
Tobias Geerinckx-Rice 2015-01-13 21:10:49 +01:00
parent 9438fa4d3f
commit 6565714873

View file

@ -21,6 +21,10 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/eid-viewer --suffix LD_LIBRARY_PATH : ${pcsclite}/lib
cat >> $out/share/applications/eid-viewer.desktop << EOF
# eid-viewer creates XML without a header, making it "plain text":
MimeType=application/xml;text/xml;text/plain
EOF
'';
meta = with stdenv.lib; {