Associating file extensions
asked 13 Sep '11, 08:18
This action allows you to create file associations for Windows, defining commands such as "open" for a given file extension.
Supported Platforms: Windows.
Note: Be careful when using %L. Eventually, any quotation marks in the value of %L are stripped off and the argument passed to the command may contain file names with spaces. Such file names can cause problems with some commands. If this is a concern, you should use %1 instead of %L.
answered 13 Sep '11, 08:21
This can also be done in linux but is much much less simple.
Here is roughly how you do it.
1) Create a 'Desktop Entry File' for your application. This is a .desktop file in /usr/share/applications/ based on the Desktop Entry Specification found at http://standards.freedesktop.org/desktop-entry-spec/latest/. The entry must contain an entry for the Mime Types it can open.
2) Create an XML file describing the Mime Type of your file type. The file should look as follows:
4) Create a series of icons for the file type, usually at 16x16, 24x24, 32x32, 48x48, 64x64, 128x128, 256x256, and 512x512.
5) For each icon call:
6) At this point you now have a shortcut to your application, a registered mime type, and an icon for your file type. The last thing to do is register your application as the default for the mime type as follows:
7) Finally, once you have done this for every Application & File Type call the following:
...and that should be it. Obviously, you'll need to replace everything wrapped in  so it suits your needs. I couldn't use angle brackets so I used square.
answered 25 Oct '12, 06:39