---------- Forwarded message --------- From: Kaj Ailomaa <[email protected]> Date: Fri, Jul 16, 2021 at 4:22 AM Subject: Re: [PD] Pd files on Linux: MIME type and (document) icons To: Miller Puckette <[email protected]>
>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 <[email protected]> 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 < > [email protected]> 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_pd_blob_master_debuild_debian_sharedmimeinfo&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=il_dmfT94qf-ZLOj3ueauiJlID7Crc-Ip5cb2VGHkjU&s=8mViUHVAigSdzJroibHaOVTWPxmO-U-K12ixJsOmX3c&e= >> > >> > I've adapted that to Pure Data: >> > >> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chairaudio_pd-2Dicon_blob_mime-2Dinstall_x-2Dpuredata.xml&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=il_dmfT94qf-ZLOj3ueauiJlID7Crc-Ip5cb2VGHkjU&s=qwj4LYl0gRG56bQQ-A9ABD96jYwu793PL0aKp37yFRc&e= >> > >> > Dan Wilcox made this repository with icons for Pure Data: >> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pure-2Ddata_pd-2Dicon&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=il_dmfT94qf-ZLOj3ueauiJlID7Crc-Ip5cb2VGHkjU&s=EyTomXF2_ov_OCUyfIe5mWxe4pOGJoj1HTtFU3Osh_U&e= >> > 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_pd-2Dicon_tree_mime-2Dinstall&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=il_dmfT94qf-ZLOj3ueauiJlID7Crc-Ip5cb2VGHkjU&s=XU2icyaR8lOHdgdDdGBObn9gtZecKSlwH2nt3kUOS-A&e= >> > >> > 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_questions_30931_register-2Dfile-2Dextensions-2Dmime-2Dtypes-2Din-2Dlinux_31836-2331836&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=il_dmfT94qf-ZLOj3ueauiJlID7Crc-Ip5cb2VGHkjU&s=_onY9G82S2_tHrtizR2X4p8d5L11tJsFMOSX1-ocoCQ&e= >> > >> > There are some comments on my pull request by IOhannes: >> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pure-2Ddata_pd-2Dicon_pull_6&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=il_dmfT94qf-ZLOj3ueauiJlID7Crc-Ip5cb2VGHkjU&s=uIyzesu51DVgsEuJnSlSLo2kfnROBq5FAxB6bRy142E&e= >> > >> > 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. >> > >> > >> > >> > _______________________________________________ >> > [email protected] mailing list >> > UNSUBSCRIBE and account-management -> >> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=il_dmfT94qf-ZLOj3ueauiJlID7Crc-Ip5cb2VGHkjU&s=NWZdJVG_GyOCThPitSwCPvSoakGoy5s8XS1yg2MBQeg&e= >> >> -- >> >> >> >> _______________________________________________ >> [email protected] mailing list >> UNSUBSCRIBE and account-management -> >> https://lists.puredata.info/listinfo/pd-list >> >
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
