On 7/16/21 04:23, Kaj Ailomaa wrote:
---------- Forwarded message --------- From: Kaj Ailomaa xequential@gmail.com Date: Fri, Jul 16, 2021 at 4:22 AM Subject: Re: [PD] Pd files on Linux: MIME type and (document) icons To: Miller Puckette msp@ucsd.edu
From what I can tell, most MIME's are part of a single package in Linux distros. In the case of debian based, the package is called shared-mime-info, which includes the file /usr/share/mime/packages/freedesktop.org.xml containing mime types.
of course not. the freedesktop.org.xml covers many well-known files. but a Pd file is not "well known" to a larger community (unlike e.g. a PDF file). therefore it probably should go into a separate file.
On Fri, Jul 16, 2021 at 4:16 AM Kaj Ailomaa xequential@gmail.com wrote:
Hi.
This page discusses how to add new MIME types for freedesktop: https://www.freedesktop.org/wiki/Specifications/AddingMIMETutor/
hmm well. this page is the canonical reference but doesn't look particularly helpful (unless you start from scratch).
we already have a mime-type file. it's been included in the Debian package by hans-christof more than 10 years ago (2011-05-25). anybody who runs Debian, Ubuntu or some other derivative, could check /usr/share/mime/packages/puredata-gui.xml those who don't can get it from https://salsa.debian.org/multimedia-team/pd/puredata/-/blob/master/debian/puredata-gui.sharedmimeinfo
sidenote: this file also looks remarkably identitical to what albert has created for purr-data and what max proposed in his PR.
but yes: by all means include it in the Pd repository. just do not get distracted when trying to find a place where to install it to.
install-data-local:
$(INSTALL_DATA) $(top_srcdir)/linux/application-x-puredata.xml
$(DESTDIR)$(datadir)/mime/packages/puredata.xml
gfmdsr IOhannes