bnetctl
Install, manage, and run Battle.net on Linux via Wine.
Native Wayland is the default; X11/XWayland is available for compatibility.
GPU-specific settings are applied automatically for AMD, NVIDIA, and Intel.
Requirements
Install
With Go installed:
go install github.com/bnema/bnetctl@latest
Make sure your Go binary directory (usually ~/go/bin) is on PATH.
Usage
bnetctl install # Download and install Battle.net
bnetctl launch # Launch with native Wayland
bnetctl install --display-driver x11 # Install through X11/XWayland
bnetctl launch --display-driver x11 # Launch through X11/XWayland
bnetctl launch --no-hdr # Disable automatic HDR settings
bnetctl desktop add # Add Wayland and X11 menu entries
bnetctl desktop remove # Remove menu entries
bnetctl kill # Stop Battle.net and leftover Wine processes
bnetctl stop # Alias for kill
bnetctl clean # Remove cache and prefix
bnetctl clean -a # Also remove desktop entries and data
Wine selection
BNETCTL_WINE, when set, selects the Wine executable for every display mode.
- Otherwise, use
wine on PATH, falling back to /opt/wine-cachyos/bin/wine.
- A tracked prefix requires Wine at least as new as its recorded version, including for stop; an older explicit override is rejected.
wineboot and wineserver must be beside the resolved Wine binary; Wayland warns below 11.19.
For example: BNETCTL_WINE=/usr/bin/wine bnetctl launch.
HDR
Native Wayland automatically enables HDR for supported World of Warcraft
executables through per-executable DXVK settings, not for the Battle.net
launcher. Use Wine >= 11.19, an HDR-capable compositor with HDR enabled, and
an HDR-capable monitor; also enable HDR in the game.
An existing DXVK_HDR takes precedence. --no-hdr disables automatic settings
and unsets inherited DXVK_HDR, but leaves user-provided DXVK_CONFIG intact.
X11 mode leaves the user's HDR environment untouched.
Troubleshooting
- Wayland rendering or login problems: try
--display-driver x11 and check
your Wine version and Vulkan drivers.
- Wine version changes: close Battle.net and its games before switching.
bnetctl updates the prefix and verifies graphics DLLs when needed. Pending
RunOnce/RunServicesOnce tasks can block maintenance; resolve the reported
tasks before retrying. Stop and clean do not run migration preflight.
- Prefix busy: maintenance, shutdown, and deletion share an exclusion lock.
Stop/clean wait up to 10 seconds for the lock; retry after maintenance finishes.
Launch releases its lock once Wine starts, not at the end of the game session.
- More detail: run
bnetctl --verbose launch to see runtime selection and
maintenance diagnostics. Logs are saved to ~/.cache/bnetctl/bnetctl.log.
Directories
Paths are based on your home directory; XDG_DATA_HOME and XDG_CACHE_HOME
are not currently honored. Full cleanup retains the data directory and its
prefix.lock file so concurrent invocations keep using the same lock inode.
| Type |
Default path |
| Data |
~/.local/share/bnetctl |
| Prefix |
~/.local/share/bnetctl/prefix |
| Cache |
~/.cache/bnetctl |
| Log |
~/.cache/bnetctl/bnetctl.log |
License
MIT