Wine in Gentoo

From Elvanör's Technical Wiki
Revision as of 17:24, 19 March 2020 by Elvanor (talk | contribs)
Jump to navigation Jump to search

General Hints

  • You may need to recreate your wine directory (~/.wine) if it is very old.
  • You *need* the loopback interface for wine to work correctly, so don't remove /etc/init.d/net.lo from the init scripts.

Building latest Git

  • Add to /etc/portage/package.accept_keywords:
app-emulation/wine **
  • Add to /etc/portage/package.unmask:
=app-emulation/wine-9999

Russian Programs

  • If text is garbled, try to run with a russian locale (be sure to have this locale available, check /etc/locale.gen):
LANG=ru_RU.UTF-8 wine Setup.exe
  • However, there may still be problems with fonts. I haven't been able to solve them yet.

AMD64 Profile

Wine does not yet play very well with the no-exec protection of recent Linux kernels. It may be necessary to disable no-exec at boot with the following kernel argument:

noexec32=off

Registry Keys

  • If you need to add or change keys to the Windows registry, you can use regedit which is a GUI for this task.
  • The following key is needed for Hearthstone (Wine 5.3, KDE), else the mouse is not recaptured as soon as you Alt-Tab out of Hearthstone:
[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"UseTakeFocus"="N"

Specific Programs

  • If Hearthstone / Battle.net is "stuck", you can login using Diablo III. This will work.