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

Max abonnements at revolwear.com
Sun Jul 11 00:45:53 CEST 2021

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:

I've adapted that to Pure Data:

Dan Wilcox made this repository with icons for Pure Data: 
I have forked that and added a method to install the mime type

The command "make mime-register" will add the MIME type.
It's adapted from what I found here: 

There are some comments on my pull request by IOhannes: 

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.


More information about the Pd-list mailing list