Register a python script as default for file type
I am making an application with python which will need to be associated with a file type. I need a cross platform solution (can be different for different platforms) that includes setting the icon for the file type, having my application open when a file of that type is double-clicked and being able to reference that file when my application is opened. To clarify Lets say that I have an application called FooEdit, that edits .foo files. .foo files have the mime type of text/plain . Here is the process that happens when a user first gets FooEdit: A user obtains the executable for my application