[PD] Pd files on Linux: MIME type and (document) icons
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-types-in-linux/31836#31836 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. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] start pd + choose which settingsfile to load
thank you lucas, that did the trick :-) three cheers hans > Am 11.07.2021 um 01:14 schrieb Lucas Cordiviola : > > I'm not sure but I think you have to start the terminal in > /$PdPath/Contents/Resources/bin > > and not in /$PdPath/Contents/MacOS/Pd > > I can't test on a mac atm. > > > -- > > Mensaje telepatico asistido por maquinas. > > On 7/10/2021 6:55 PM, hans w. koch wrote: >> (sorry for winded wording): >> >> on mac os 10.14 i regularily work in both “normal” vanilla and a version >> compiled for double. >> they both share the same settings file - no problem, if i don´t autoload >> some library >> >> but now for some reason i need to put zexy into auto loaded libs for vanilla. >> expectedly, this throws an error in double: >> "refusing to load 32bit-float object 'zexy' into 64bit-float Pd” >> so i saved an "autoload library" free settingsfile für my double. >> >> however, trying to launch with options as described in >> http://msp.ucsd.edu/Pd_documentation/x3.htm#s4 >> both >> /Applications/Pd-0.51.4double.app/Contents/MacOS/Pd -prefsfile >> /Users/hwk/Documents/Pd/settings_pd-double.pdsettings >> /Applications/Pd-0.51.4double.app/Contents/MacOS/Pd -noprefs >> >> fail with "unknown option: -prefsfile” or "unknown option: -noprefs”. >> >> thanks in advance for any pointers >> >> hans >> >> >> ___ >> 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
Re: [PD] start pd + choose which settingsfile to load
I'm not sure but I think you have to start the terminal in /$PdPath/Contents/Resources/bin and not in /$PdPath/Contents/MacOS/Pd I can't test on a mac atm. -- Mensaje telepatico asistido por maquinas. On 7/10/2021 6:55 PM, hans w. koch wrote: (sorry for winded wording): on mac os 10.14 i regularily work in both “normal” vanilla and a version compiled for double. they both share the same settings file - no problem, if i don´t autoload some library but now for some reason i need to put zexy into auto loaded libs for vanilla. expectedly, this throws an error in double: "refusing to load 32bit-float object 'zexy' into 64bit-float Pd” so i saved an "autoload library" free settingsfile für my double. however, trying to launch with options as described in http://msp.ucsd.edu/Pd_documentation/x3.htm#s4 both /Applications/Pd-0.51.4double.app/Contents/MacOS/Pd -prefsfile /Users/hwk/Documents/Pd/settings_pd-double.pdsettings /Applications/Pd-0.51.4double.app/Contents/MacOS/Pd -noprefs fail with "unknown option: -prefsfile” or "unknown option: -noprefs”. thanks in advance for any pointers hans ___ 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
[PD] start pd + choose which settingsfile to load
(sorry for winded wording): on mac os 10.14 i regularily work in both “normal” vanilla and a version compiled for double. they both share the same settings file - no problem, if i don´t autoload some library but now for some reason i need to put zexy into auto loaded libs for vanilla. expectedly, this throws an error in double: "refusing to load 32bit-float object 'zexy' into 64bit-float Pd” so i saved an "autoload library" free settingsfile für my double. however, trying to launch with options as described in http://msp.ucsd.edu/Pd_documentation/x3.htm#s4 both /Applications/Pd-0.51.4double.app/Contents/MacOS/Pd -prefsfile /Users/hwk/Documents/Pd/settings_pd-double.pdsettings /Applications/Pd-0.51.4double.app/Contents/MacOS/Pd -noprefs fail with "unknown option: -prefsfile” or "unknown option: -noprefs”. thanks in advance for any pointers hans ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list