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://github.com/pd-l2ork/pd/blob/master/debuild/debian/sharedmimeinfo
I've adapted that to Pure Data: https://github.com/chairaudio/pd-icon/blob/mime-install/x-puredata.xml
Dan Wilcox made this repository with icons for Pure Data: https://github.com/pure-data/pd-icon I have forked that and added a method to install the mime type https://github.com/chairaudio/pd-icon/tree/mime-install
The command "make mime-register" will add the MIME type. It's adapted from what I found here: https://stackoverflow.com/questions/30931/register-file-extensions-mime-type...
There are some comments on my pull request by IOhannes: https://github.com/pure-data/pd-icon/pull/6
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.
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...
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
On 16.07.21 01:21, Miller Puckette 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.
I don't see how this would cause trouble. To make it easier I've made a pull request to puredata: https://github.com/pure-data/pure-data/pull/1364 However, I could not figure out how the syntax for the pd makefile needs to be, so the commands listed in the pull request must be added to it somehow.
m.