3
December
2026
Useful tips for using Wine installed via Flatpak
16:26

Useful tips for using Wine installed via Flatpak

3 December 2026 16:26

Configuring Wine via Flatpak.

After installing Flatpak and Wine:

1) Grant Wine access to user files using Flatseal

If you do not do this, the file explorer will not be able to see files in your user directories. This also makes it impossible to install applications. If the necessary permissions are missing, you will encounter the following error: "002c:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -a -r" (2)."

Launch Flatseal:

flatpak run com.github.tchx84.Flatseal

Select the Wine application:
flatseal1.png
Grant access to user files:
flatseal2.png

2) Running Winetricks via Flatpak

Windows applications may require additional components (such as OCX or DLL files), which can be installed using Winetricks.

Run org.winehq.Wine with the --command=winetricks flag:

flatpak run --command=winetricks org.winehq.Wine

Use the default prefix
ms0.png

Install a DLL or Windows component
ms1.png

For example, the comctl32 component
ms2.png

Yes
ms3.png

Yes
ms4.png

In this case, no additional components are required for MMANA. The installation method is provided as an example.

4) Configuring Wine settings using WineCfg

WineCfg is used to configure compatibility settings for Windows applications. Winecfg can be launched either via winetricks (by selecting the "WineTricks" option):

ms5.png

Or by running Wine with the --command=winecfg flag:

flatpak run --command=winecfg org.winehq.Wine

To exit, press the Escape key.

4) Display emulation for Wine

The commands used by a Windows application to render its interface may be incompatible with certain Linux drivers—specifically, the open-source Nvidia "Nouveau" driver. To resolve this, check the "Emulate a virtual desktop" box in winecfg and specify a resolution, for example, 800x600 pixels.

ms6.png

5) Launching the "Windows Explorer" equivalent in Wine to select an EXE file for installation

flatpak run org.winehq.Wine explorer

ms8.png

You can expand the /home path to access the user's home directory.

home.png

Locate the EXE file to install or run the application.

6) Configuring the execution order of menubuilder or disabling menubuilder.exe

Sometimes, an application may fail to appear in the "Start" menu after installation.
Additionally, the built-in menubuilder.exe component may generate error messages; in such cases, it can be disabled.

  • Launch Wine with the --command=winecfg flag:

    flatpak run --command=winecfg org.winehq.Wine

  • On the "Libraries" tab, add the entry "winemenubuilder.exe" and select one of the available options (Built-in (Wine); Native (Windows); Built-in, then Native; Native, then Built-in; or Disable). * The same applies to the comctl32 component — you can use either the version provided with Wine or a third-party one.

For the "File - Open" menu item to work, the "Built-in (Wine)" setting must be selected for comctl32.dll.

Additionally, the XDG-DESKTOP-PORTAL package must be installed!

7) Launching an application via Wine from Flatpak

For example, launching MMANAGALBasic35.exe:

flatpak run org.winehq.Wine ~/.var/app/org.winehq.Wine/data/wine/drive_c/MMANA-GALBasic3/MMANAGALBasic35.exe

8) Shortcut in the "Start" menu

  • Command:

/usr/bin/flatpak run --arch=x86_64 org.winehq.Wine /home/vladimir/.var/app/org.winehq.Wine/data/wine/drive_c/MMANA-GALBasic3/MMANAGALBasic35.exe

  • Working directory: /home/vladimir/.var/app/org.winehq.Wine/data/wine/drive_c/MMANA-GALBasic3

I provided the contents of the mmana.desktop shortcut file (for the desktop or "Start" menu) in my previous article:
Installing Wine, Flatseal, and MMANA-GAL Basic via Flatpak. I provided the contents of the desktop or Start menu shortcut file (*.desktop) for MMANAGALBasic35.exe in my previous article:

The shortcut file must be placed in ~/.local/share/applications. You can launch the application via the Start menu under "All Applications."