View Issue Details

IDProjectCategoryView StatusLast Update
0025969Return of ReckoningScenariospublic2026-11-16 14:08
Reporterjackson5 Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status newResolutionopen 
Summary0025969: Launcher 4.0.5.26 under Wine/Proton: Play fails with "running as administrator" error (GetShellWindow returns NULL)
DescriptionSince launcher 4.0.5.26 (launcher/stable release 20261116-0043-6f710d9f), clicking Play under Wine/Proton on Linux always shows:

"Error starting: The launcher is running as administrator and could not start the game as your normal Windows account. Close the launcher and start it normally, not as administrator."

Login, patching, addons and the news feed all work. The game files are complete (war/live 20261031-0958, 197809 files unchanged). The session ticket is issued (POST /launcher/v1/tickets -> 201). The failure happens locally, when the launcher tries to start WAR.exe. The error is not written to launcher.log.

RoRLauncher.exe manifest is "asInvoker", so no elevation is requested. However, under Wine the user is always a member of the Administrators group, so the launcher's admin check returns true. It then tries to start WAR.exe with the desktop shell's token, and that step fails.

This most likely affects all Linux and Steam Deck players.
Steps To Reproduce1. Install RoR on Linux with Lutris (xpander's script) or any Wine/Proton runner.
2. Start RoRLauncher.exe and sign in. The launcher updates to 4.0.5.26.
3. Click Play.
4. The error dialog appears every time. WAR.exe is never started.

Runners tested, all with the same result: wine-ge-8-26, GE-Proton (latest, via umu), Wine 9.0 (Ubuntu). Also tested with the Wine virtual desktop (Wine 9.0): same error.
Additional InformationWine relay trace of the launcher process when clicking Play:

advapi32.OpenProcessToken -> 1 (OK)
advapi32.DuplicateTokenEx -> 1 (OK)
advapi32.AdjustTokenPrivileges -> 1 (OK) (SeIncreaseQuotaPrivilege)
user32.GetShellWindow() -> 0 (NULL) <- fails here

This matches the Microsoft "RunAsDesktopUser" pattern (GetShellWindow -> GetWindowThreadProcessId -> OpenProcess -> OpenProcessToken -> DuplicateTokenEx -> CreateProcessWithTokenW). Under Wine there is no shell window by default, so GetShellWindow() returns NULL and the launcher aborts.

Confirmation: when a window is registered as the shell window in the Wine prefix (SetShellWindow) before starting the launcher, Play works and the game starts normally.

Suggested fixes (launcher side):
- Skip the "restart as normal user" step when running under Wine. The registry key HKCU\Software\Wine always exists in a Wine prefix (or check for wine_get_version in ntdll.dll).
- Or fall back to a regular CreateProcess when GetShellWindow() returns NULL, instead of aborting.

Environment: Ubuntu 24.04, Lutris 0.5.22, wine-ge-8-26, NVIDIA RTX 3060 (driver 580), win64 prefix on ext4.
Full traces available on request.
TagsNo tags attached.
EnvironmentLive
PlatformWindows

Activities

jackson5

jackson5

2026-11-16 04:26

reporter   ~0049488

This is on the linux on Lutris, latest version. This is fixed for me. This is a report for you guys,
faef2

faef2

2026-11-16 12:18

reporter   ~0049491

Adding a note as a question, is there a reason why you have built in blocking running as an admin user, because this makes it incompatible with steam to add in as external game and be able to use a steam controller - which I like to use over a keyboard. Never seen a game put this kind of restriction on before. Is this intended behavior, will you always be blocking the launcher being run as admin?
jackson5

jackson5

2026-11-16 14:08

reporter   ~0049492

Not a dev, I'm the one who reported this, but here is what I found while debugging it, in case it helps.

The launcher does not simply refuse to run as admin. When it detects it is elevated, it tries to start WAR.exe as your normal (non-admin) user, by borrowing the token of the desktop shell (GetShellWindow -> explorer.exe). That is the standard Microsoft pattern to avoid running a game elevated. The error only shows when that step fails.

On Linux/Wine it fails because there is no shell window (GetShellWindow returns NULL). In your case (Windows + Steam), the launcher is probably inheriting admin rights from Steam.

If Steam runs as a normal user, the launcher should start as a normal user too and never hit this code path. If it still fails with Steam not elevated, that would be useful info for the devs, since it would point to the shell/token step failing on Windows as well.

Issue History

Date Modified Username Field Change
2026-11-16 04:25 jackson5 New Issue
2026-11-16 04:26 jackson5 Note Added: 0049488
2026-11-16 12:18 faef2 Note Added: 0049491
2026-11-16 14:08 jackson5 Note Added: 0049492