From: Sven Hoexter Date: Wed, 8 May 2024 15:10:50 +0000 (+0200) Subject: cleanup mimetype handling X-Git-Tag: debian/2.9.27-1~5 X-Git-Url: https://git.sven.stormbind.net/?a=commitdiff_plain;ds=sidebyside;h=99510c0751c45adf0282e5fad405f224c6f7a2f0;hp=31128c1138a3b4c912759edd953199f4d0df9317;p=sven%2Fvym.git cleanup mimetype handling 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. --- diff --git a/debian/changelog b/debian/changelog index 89c34d8..235822a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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. diff --git a/debian/rules b/debian/rules index 09b9c94..df0df7e 100755 --- a/debian/rules +++ b/debian/rules @@ -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 index 0000000..0c4f7e1 --- /dev/null +++ b/debian/vym.links @@ -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 index 31ed036..0000000 --- a/debian/vym.mime +++ /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