Hi list,
possibly related to this topic, how could we arrive to have web browsers across all OSes download Pd files instead of displaying them as text files? I have many students each year who stumble across this, even more so as their browsers sometimes add an .txt extension to the .pd file they are then trying to save.
best, P
---------- 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.
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/
But, I would probably submit a patch for the main package as explained at the bottom of the page.
/Kaj
On Fri, Jul 16, 2021 at 1:23 AM Miller Puckette via Pd-list < pd-list@lists.iem.at> wrote:
Hi all -
This appears to be a PR to https://github.com/pure-data/pd-icon - but htere seems to be confusion as to whether this should be part of pure data itself. I think it wound be fine to have it in pure data - but I don't know if I should just grab the files and stick them in pure-data or if that would cause trouble somehow.
cheers M
On Sun, Jul 11, 2021 at 12:45:53AM +0200, Max wrote:
Hi list,
Linux doesn't let you define that a file extension .pd shall be opened
with
pd-gui. Since .pd files are of the texfile MIME type, if you set them
to be
opened by pd-gui, also every double click on a text document will launch pd-gui. Instead, when you want .pd files to be opened with the pd-gui
executable,
you first need to register a new MIME type. This is done by installing
an
XML file of the freedesktop standard "shared-mime-info".
Albert Graef has made one for pd-l2ork/Purr Data, which you can find
here:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pd-2Dl2ork_p...
I've adapted that to Pure Data:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chairaudio_p...
Dan Wilcox made this repository with icons for Pure Data:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pure-2Ddata_...
I have forked that and added a method to install the mime type
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chairaudio_p...
The command "make mime-register" will add the MIME type. It's adapted from what I found here:
https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_quest...
There are some comments on my pull request by IOhannes:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pure-2Ddata_...
Anyway, maybe someone more knowledgable can take over here, the goal is
to
include this to the Pd installation so that Pd documents on Linux have
the
Pd file icon and are opened by pd-gui by default.
m.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_lis...
--
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list