Can't configure Wine on Leap 16.0

I installed Leap 16.0 (no upgrade, just fresh installation) leaving home/ directory from Leap 15.6 where I had .wine/ directory (I removed it).

List of my repos:

$ zypper lr -u
# | Alias                       | Name                      | Enabled | GPG Check | Refresh | URI
--+-----------------------------+---------------------------+---------+-----------+---------+-------------------------------------------------------------------------
1 | Emulators_Wine              | Wine (16.0)               | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/Emulators:/Wine/16.0/
2 | NVIDIA:repo-non-free        | repo-non-free (16.0)      | Yes     | (r ) Yes  | Yes     | https://download.nvidia.com/opensuse/leap/16.0
3 | openSUSE:repo-non-oss       | repo-non-oss (16.0)       | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/distribution/leap/16.0/repo/non-oss/x86_64
4 | openSUSE:repo-non-oss-debug | repo-non-oss-debug (16.0) | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/debug/distribution/leap/16.0/repo/non-oss/x86_64
5 | openSUSE:repo-openh264      | repo-openh264 (16.0)      | Yes     | (r ) Yes  | Yes     | http://codecs.opensuse.org/openh264/openSUSE_Leap_16
6 | openSUSE:repo-oss           | repo-oss (16.0)           | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/distribution/leap/16.0/repo/oss/x86_64
7 | openSUSE:repo-oss-debug     | repo-oss-debug (16.0)     | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/debug/distribution/leap/16.0/repo/oss/x86_64
8 | openSUSE:repo-oss-source    | repo-oss-source (16.0)    | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/source/distribution/leap/16.0/repo/oss

Installed wine software:

$ zypper se wine
S  | Name                               | Summary                                                | Type
---+------------------------------------+--------------------------------------------------------+-----------
   | mingw32-cross-wine                 | Wine cross runtime                                     | package
   | mingw32-cross-wine                 | Wine cross runtime                                     | srcpackage
   | mingw64-cross-wine                 | Wine cross runtime                                     | package
   | mingw64-cross-wine                 | Wine cross runtime                                     | srcpackage
   | python-twine                       | Collection of utilities for interacting with PyPI      | srcpackage
   | python313-twine                    | Collection of utilities for interacting with PyPI      | package
   | wine                               | An MS Windows Emulator                                 | srcpackage
i+ | wine                               | An MS Windows Emulator                                 | package
   | wine-binfmt                        | The binfmt_misc support for Windows                    | package
   | wine-binfmt                        | The binfmt_misc support for Windows                    | srcpackage
   | wine-binfmt-standalone             | Standalone binfmt_misc support for Windows             | package
   | wine-debuginfo                     | Debug information for package wine                     | package
   | wine-debugsource                   | Debug sources for package wine                         | package
   | wine-devel                         | Files for Wine development                             | package
   | wine-devel-debuginfo               | Debug information for package wine-devel               | package
i  | wine-gecko                         | The Wine specific Gecko HTML rendering engine          | package
   | wine-gecko                         | The Wine specific Gecko HTML rendering engine          | srcpackage
i  | wine-mono                          | A .NET replacement for use by Wine                     | package
   | wine-mono                          | A .NET replacement for use by Wine                     | srcpackage
   | wine-staging                       | An MS Windows Emulator                                 | srcpackage
   | wine-staging                       | An MS Windows Emulator                                 | package
   | wine-staging-debuginfo             | Debug information for package wine-staging             | package
   | wine-staging-debugsource           | Debug sources for package wine-staging                 | package
   | wine-staging-devel                 | Files for Wine development                             | package
   | wine-staging-devel-debuginfo       | Debug information for package wine-staging-devel       | package
   | wine-staging-wow64                 | An MS Windows Emulator                                 | srcpackage
   | wine-staging-wow64                 | An MS Windows Emulator                                 | package
   | wine-staging-wow64-debuginfo       | Debug information for package wine-staging-wow64       | package
   | wine-staging-wow64-debugsource     | Debug sources for package wine-staging-wow64           | package
   | wine-staging-wow64-devel           | Files for Wine development                             | package
   | wine-staging-wow64-devel-debuginfo | Debug information for package wine-staging-wow64-devel | package
   | wine-wow64                         | An MS Windows Emulator                                 | srcpackage
   | wine-wow64                         | An MS Windows Emulator                                 | package
   | wine-wow64-debuginfo               | Debug information for package wine-wow64               | package
   | wine-wow64-debugsource             | Debug sources for package wine-wow64                   | package
   | wine-wow64-devel                   | Files for Wine development                             | package
   | wine-wow64-devel-debuginfo         | Debug information for package wine-wow64-devel         | package
i  | winetricks                         | A way to work around problems in WINE                  | package
   | winetricks                         | A way to work around problems in WINE                  | srcpackage
   | winetricks-bash-completion         | Bash Completions for winetricks                        | package

My software installation requires dotnet. I did:

rm -rf ~/.wine
export WINEPREFIX="$HOME/.wine"
export WINEARCH=win64
wineboot -u

If I run winetricks I see some warnings:

You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
You appear to be using Wine's new wow64 mode. Note that this is EXPERIMENTAL and not yet fully supported. If reporting an issue, be sure to mention this.

But I can install some Windows’s app. If I choose dotnet20sdk to install the process is interrupted:

This package (dotnet20sdk) does not work on a 64-bit installation. You must use a prefix made with WINEARCH=win32.

I tried to repeat this steps using WINEARCH=win32 but I got:

wine: WINEARCH is set to 'win32' but this is not supported in wow64 mode.

I also tried to remove all wine software and then I installed wine-wow64. This installation process gave me some warnings that it might break compatibility but I decided to go further. Ultimately, I had also some errors regarding wrong prefix and arch. I remember that on Leap 15.6 there was wine-32bit which was installed and worked. How to resolve this issue?

There are a quite some threads in the forum regarding this topic…
Leap 16 removed 32bit support (see relase notes). To enable it you need to:

sudo update-bootloader --add-option ia32_emulation=1
sudo update-bootloader --config

Reboot.

And if you use SELinux:

sudo zypper in selinux-policy-targeted-gaming

Could you give me more instructions? I’ve also read another topics again (I always do the research before I decide to type a post by searching not only forum but Internet too). I have 32 and 64 bit version of the same program I’m trying to install it. After your suggestions:

$ wine App32.exe # the same error for App64.exe
00ec:err:environ:init_peb starting L"Z:\\home\\user\\App32.exe" in experimental wow64 mode
wine: failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: 0024:err:start:fatal_error FormatMessage failed

I’m trying:

$ ls App*
App32.exe  App64.exe
$ flatpak run --command=wine org.winehq.Wine App32.exe
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.

This should be:
flatpak run org.winehq.Wine </path/to/appname here>

For both apps:

Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.

Flatpak list gives me (I paste it just in case):

Freedesktop Platform               org.freedesktop.Platform                               freedesktop-sdk-25.08.3             25.08                   user
i386                               org.freedesktop.Platform.Compat.i386                                                       25.08                   user
Mesa                               org.freedesktop.Platform.GL.default                    25.2.6                              25.08                   user
Mesa (Extra)                       org.freedesktop.Platform.GL.default                    25.2.6                              25.08-extra             user
Mesa                               org.freedesktop.Platform.GL32.default                  25.2.6                              25.08                   user
Mesa (Extra)                       org.freedesktop.Platform.GL32.default                  25.2.6                              25.08-extra             user
Intel VAAPI driver                 org.freedesktop.Platform.VAAPI.Intel                                                       25.08                   user
i386                               org.freedesktop.Platform.VAAPI.Intel.i386                                                  25.08                   user
Codecs Extra Extension             org.freedesktop.Platform.codecs-extra                                                      25.08-extra             user
i386                               org.freedesktop.Platform.codecs_extra.i386                                                 25.08-extra             user
Wine                               org.winehq.Wine                                        10.0                                stable-25.08            user
gecko                              org.winehq.Wine.gecko                                                                      stable-25.08            user
mono                               org.winehq.Wine.mono                                                                       stable-25.08            user

Trying a full path to the app:

wine: failed to open "/home/user/App32.exe": c0000135

@Tail (and @hui ) Have a read at the end of this on what format is needed to run…
https://forums.opensuse.org/t/wine-32bits-future/188619

Could you be more precise, please (which post do you mean)? I’ve followed this topic once again. I see that I’ve installed what is suggested and also executed similar commands. If you know what I’m doing wrong, I will appreciate your help.

@Tail Assuming it in in your $HOME directory and the wine flatpak is installed as your user, then;
flatpak --user run ./App32.exe

Yes, the apps are stored in $HOME. flatpak has been installed for a user (not for system). Now:

$ls App* -1
App32.exe
App64.exe
$ flatpak --user run ./App32.exe
error: Invalid id .: Name can't start with a period
$ flatpak --user run App32.exe
error: Invalid id App32.exe: Names must contain at least 2 periods

@Tail do you have a link to the app?

Studio App.

@Tail So I have an ~/applications directory so I put the binary in that folder…

flatpak --user run --filesystem=~/applications org.winehq.Wine applications/Studio+2.0_32.exe

You may need to switch to root user and run setsebool selinuxuser_execmod 1 which was noted in the other thread…

I see;

I was able to run installer as you did. The program has been installed but if I click on it, I get an error from the system:

Failed to launch "Studio 2.0"

Failed to change to directory "/home/user/.wine/dosdevices/c:/Program Files/Studio 2.0" (No such file or directory)

And indeed, in $HOME/.wine/Program Files there is no Studio 2.0 directory.

@Tail well it’s in the flatpak version so if you look with explorer to find, then can run…
eg flatpak --user run org.winehq.Wine explorer which should result in you using flatpak --user run org.winehq.Wine "C:\Program Files (x86)\Studio 2.0\Studio_32.exe" You can create an appripiate desktop file in ~/.local/share/applications directory…

Wow!
Please nobody tell anyone who considers migration from Windows
that he could easily use his familar apps with wine if not available in Linux… :roll_eyes:

@user42 I wouldn’t, would suggest they use Codeweaver :smile:

There are other flatpak front ends…

@malcolmlewis : :slight_smile:


Moreover, using boot option

… seems to have possible side-effects and drawbacks… (as far as I could figure out)?

@user42 It’s been available since kernel 6.7… I don’t see any issues running it, have any cites for this?

@malcolmlewis Meanwhile I searched for the cites, but wasn’t successful.

I just remember it was about driving some periphericals (but maybe that’s fixed already).

The reason for me using a question mark in post (that is something like “?”) was asking for known issues (That’s for the smart ones reporting my post).

But all this taken apart… if ia32_emulation mode wouldn’t have any drawbacks/ sideeffects, it would be enabled by default, wouldn’t it?
Otherwise you wouldn’t need an additional boot option (which is unpractical anyway: just for using a 32bit app), but to use it in one’s boot parameter?

@user42 it is enabled by default, it’s disabled in Leap 16.0…

Tumbleweed
zcat /proc/config.gz | grep CONFIG_IA32_EMULATION
CONFIG_IA32_EMULATION=y
# CONFIG_IA32_EMULATION_DEFAULT_DISABLED is not set

LEAP 16.0
zcat /proc/config.gz | grep CONFIG_IA32_EMULATION
CONFIG_IA32_EMULATION=y
CONFIG_IA32_EMULATION_DEFAULT_DISABLED=y