From 6565714873cc43f902d4c2cb32c5072524287291 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 13 Jan 2015 21:10:49 +0100 Subject: [PATCH] eid-viewer: associate with XML & plain text .eid files The .eid files are in fact XML, but lack the declaration that file(1) seems to expect. At least the viewer now appears as an option in most GUIs. --- pkgs/tools/security/eid-viewer/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/security/eid-viewer/default.nix b/pkgs/tools/security/eid-viewer/default.nix index cb8b9db908bd..5e8361709a98 100644 --- a/pkgs/tools/security/eid-viewer/default.nix +++ b/pkgs/tools/security/eid-viewer/default.nix @@ -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; {