Tag: wine

Preventing Wine from registering mimetypes

When installing Wine for Linux, the install script insists on associating all text files with its built-in notepad.exe

As someone who uses Vim almost exculsively, this is definitely not the desired behaviour.

To stop this from happening, run the following command before installing Wine.

1
export WINEDLLOVERRIDES='winemenubuilder.exe=a'

This sets the path of the winemenubuilder library (the library that creates mimetype associations) to something invalid, preventing the associations from being made when Wine installs.

Once Wine is installed, it won't try to associate notepad.exe again. However, if needed, the library can be properly disabled via the libraries tab of wineconf.

© Carey Metcalfe. Built using Pelican. Theme is subtle by Carey Metcalfe. Based on svbhack by Giulio Fidente.