about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-01-13 21:10:49 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-01-13 21:10:49 +0100
commit6565714873cc43f902d4c2cb32c5072524287291 (patch)
tree67aeebf2705f5941c7ccd867cc71f5af2d9d946f /pkgs
parent9438fa4d3f61617905210de51090400d6e4eed6e (diff)
downloadnixlib-6565714873cc43f902d4c2cb32c5072524287291.tar
nixlib-6565714873cc43f902d4c2cb32c5072524287291.tar.gz
nixlib-6565714873cc43f902d4c2cb32c5072524287291.tar.bz2
nixlib-6565714873cc43f902d4c2cb32c5072524287291.tar.lz
nixlib-6565714873cc43f902d4c2cb32c5072524287291.tar.xz
nixlib-6565714873cc43f902d4c2cb32c5072524287291.tar.zst
nixlib-6565714873cc43f902d4c2cb32c5072524287291.zip
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.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/security/eid-viewer/default.nix4
1 files changed, 4 insertions, 0 deletions
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; {