]> git.sven.stormbind.net Git - sven/vym.git/commitdiff
cleanup mimetype handling
authorSven Hoexter <sven@stormbind.net>
Wed, 8 May 2024 15:10:50 +0000 (17:10 +0200)
committerSven Hoexter <sven@stormbind.net>
Wed, 8 May 2024 15:10:50 +0000 (17:10 +0200)
After re-reading Debian Policy 9.7 I realized
that shipping the .desktop file nowadays is enough.
Thus we can delete the custom mailcap mimetype definition.
In addition to that we can create the mimetype icon link for
the hicolor theme via dh_link instead of calling ln -s in the
package build manually.

debian/changelog
debian/rules
debian/vym.links [new file with mode: 0644]
debian/vym.mime [deleted file]

index 89c34d8ea715a231939df0d1a9c1019be52f37fc..235822ac0bf425505d98fd03cebb28a9888d765f 100644 (file)
@@ -8,7 +8,7 @@ vym (2.9.22-1) UNRELEASED; urgency=medium
   * Ship upstream man 1 vym.
   * Drop debian/menu.
   * Update debian/copyright.
-  * Add a mime file and icon for the hicolor default theme.
+  * Add a mimetype icon for the hicolor default theme.
   * Add Rules-Requires-Root set to no.
   * Add Vcs information to debian/control.
   * Raise Standards-Version to 4.7.0.
index 09b9c94913784f2d6790f43b9dde46e7e3acb36e..df0df7e238ccb8df74afd0ca10afd9352f1d2c76 100755 (executable)
@@ -15,9 +15,6 @@ override_dh_auto_configure:
 
 override_dh_auto_install:
        dh_auto_install --destdir=debian/vym/
-       # create a link to use the vym icon in the hicolor default theme
-       # for .vym files matched by the mime type
-       ln -s ../apps/vym.png debian/vym/usr/share/icons/hicolor/48x48/mimetypes/application-x-vym.png
 
 # prevent compression of pdf documentation
 override_dh_compress:
diff --git a/debian/vym.links b/debian/vym.links
new file mode 100644 (file)
index 0000000..0c4f7e1
--- /dev/null
@@ -0,0 +1 @@
+usr/share/icons/hicolor/48x48/apps/vym.png usr/share/icons/hicolor/48x48/mimetypes/application-x-vym.png
diff --git a/debian/vym.mime b/debian/vym.mime
deleted file mode 100644 (file)
index 31ed036..0000000
+++ /dev/null
@@ -1 +0,0 @@
-application/x-vym; vym %s; edit=vym %s; nametemplate=%s.vym; test=test "$DISPLAY" != ""; description="View Your Mind File"; priority=5