[PD] Pd files on Linux: MIME type and (document) icons

Miller Puckette msp at ucsd.edu
Fri Jul 16 01:21:01 CEST 2021


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.
> 
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at 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=

-- 





More information about the Pd-list mailing list