This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository sweethome3d.

commit 24663fb852b008e72757f91588b7b17f9166895c
Author: Markus Koschany <a...@debian.org>
Date:   Sun Jan 28 16:54:08 2018 +0100

    Define MimeType application/sweethome3d in desktop file and install
    
    a MIME type handler.
    
    Closes: #885926
---
 debian/sweethome3d.desktop | 1 +
 debian/sweethome3d.install | 1 +
 debian/sweethome3d.mime    | 1 +
 debian/sweethome3d.xml     | 7 +++++++
 4 files changed, 10 insertions(+)

diff --git a/debian/sweethome3d.desktop b/debian/sweethome3d.desktop
index d14038a..1780884 100644
--- a/debian/sweethome3d.desktop
+++ b/debian/sweethome3d.desktop
@@ -13,3 +13,4 @@ Terminal=false
 Type=Application
 Categories=Graphics;2DGraphics;3DGraphics;
 Keywords=interior;design;2D;3D;home;house;furniture;java;
+MimeType=application/sweethome3d;
diff --git a/debian/sweethome3d.install b/debian/sweethome3d.install
index 5ff2be4..e6f45f4 100644
--- a/debian/sweethome3d.install
+++ b/debian/sweethome3d.install
@@ -5,3 +5,4 @@ debian/icons/48/sweethome3d.png         
usr/share/icons/hicolor/48x48/apps
 debian/sweethome3d.desktop             usr/share/applications
 debian/sweethome3d.sh                  usr/share/sweethome3d
 install/sweethome3d.jar                        usr/share/sweethome3d
+debian/sweethome3d.xml usr/share/mime/packages
diff --git a/debian/sweethome3d.mime b/debian/sweethome3d.mime
new file mode 100644
index 0000000..82e6b9e
--- /dev/null
+++ b/debian/sweethome3d.mime
@@ -0,0 +1 @@
+application/sweethome3d; /usr/bin/sweethome3d -- '%s'; 
edit=/usr/bin/sweethome3d -- '%s'; description="Sweet Home 3D"; test=test -n 
"$DISPLAY"
diff --git a/debian/sweethome3d.xml b/debian/sweethome3d.xml
new file mode 100644
index 0000000..3c51bda
--- /dev/null
+++ b/debian/sweethome3d.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
+   <mime-type type="application/sweethome3d">
+     <comment>Sweet Home 3D </comment>
+     <glob pattern="*.sh3d"/>
+   </mime-type>
+</mime-info>

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/sweethome3d.git

_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to