Difference between revisions of "Changing filetype association via MIME"
Revision as of 10:04, 27 February 2007
Many of you will be wanting to run windows apps within your linux installation, and you can do this via the wonderful Wine. This guide will show you how to alter your MIME database in a safe way so that you can associate windows executables with Wine. Warning: Do NOT attempt to modify the mime database directly!
- First, create the file "~/.local/share/mime/packages/mine.xml", as such:
$ mkdir -p ~/.local/share/mime/packages $ cd ~/.local/share/mime/packages $ touch mime.xml
(Or you can just do it with your graphical file browser)
- Next, open up mine.xml and paste the following inside:
<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="application/x-ms-dos-executable"> <comment xml:lang="en">Windows Executable</comment> <glob pattern="*.exe"/> </mime-type> </mime-info>
- Finally, enter this at the command prompt:
$ update-mime-database ~/.local/share/mime
The method outlined above will intergrate the xml file you made with the mime database, so that you can make your own associations for .exe files (probably Wine).