Linux setup bug: step 2 stops with "umu could not make the prefix" although the prefix is made (umu-run "" exits 1 with GE-Proton11-15) #340

Closed
opened 2026-11-30 13:59:33 +00:00 by I-I-IT · 1 comment
I-I-IT commented 2026-11-30 13:59:33 +00:00 (Migrated from github.com)
Contributor

Imported from PastiiJay/klbf-lab. Originally posted by I-I-IT on 2026-11-30T13:59:33Z.


Title: Linux setup: step 2 stops with "umu could not make the prefix" although the prefix is made (umu-run "" exits 1 with GE-Proton11-15)

Made by Claude, with some cosmetic changes by me.

KLBF Lab version: v26.11.18 (already in the folder, kept by the script)
Setup script: docs/linux/klbf-proton-setup.sh from main (commit 37c34d4, identical to the current raw file on main)
Graphics card: RX 7900 XT (RDNA 3)

System

Distribution Fedora 44, kernel 7.1.12-200.fc44
GPU driver Mesa 26.2.7, RADV (Vulkan 1.4.354)
umu-launcher 1.4.4 (umu-launcher-1.4.4-1.20260725.cf3d1b1.fc44, Python 3.14.10)
Proton GE-Proton11-15 (downloaded by umu, PROTONPATH=GE-Proton)

What I did

First run of the setup on a PC with no GE-Proton and no prefix:

bash docs/linux/klbf-proton-setup.sh --dir "<KLBF Lab folder>"

What happened

umu downloads GE-Proton11-15 and steamrt4, and Proton makes the prefix. Then, umu exits with 1 and the script stops at step 2:

Proton: Upgrading prefix from None to 11.0-100 with GE-Proton11-15 (~/.local/share/klbf-lab/prefix/)
Proton: Error: unable to use parent for game drive, path
...
Proton: Executable is inside wine prefix, launching normally.
ntsync: up and running.
Application could not be started, or no application associated with the specified file.
**ShellExecuteEx failed: File not found.**

KLBF Lab setup stopped: umu could not make the prefix (see its messages above)

The prefix was complete anyway: system.reg, user.reg, drive_c/windows/system32 (842 files), and version = 11.0-100.

Running the script a second time works: step 2 says "already made, reused", and steps 3 to 6 finish ("Done", exit 0). pwsh.exe is in the prefix, and d3dcompiler_47.dll matches its SHA-256 (1da540a0…480790).

Cause

In make_prefix(), the prefix is made with "$UMU" "". Proton makes the prefix, then tries to start the empty program, which fails (ShellExecuteEx failed: File not found). The || die on that line stops the script before the system.reg check on the next line runs.

I checked it in throwaway prefixes, same umu and GE-Proton:

Command Exit code Prefix made
umu-run "" (new prefix) 1 yes
umu-run "" (existing prefix) 1 (already there)
umu-run cmd /c exit 0 (existing prefix) 0 (already there)
umu-run wineboot -u (new prefix) 0 yes

So the exit code of 1 comes from the empty program, not from making the prefix.

Possible fix

Make the prefix with wineboot -u rather than an empty program (exit 0, prefix made, in my test above):

WINEPREFIX="$PREFIX" GAMEID=umu-default PROTONPATH="$PROTON" "$UMU" wineboot -u || die "umu could not make the prefix (see its messages above)"
[ -f "$PREFIX/system.reg" ] || die "umu ran but the prefix has no system.reg"

Or keep "", and only rely on the system.reg check that comes after it.

Not tested

  • GE-Proton11-14 (the version used in #195 and #233): I don't know whether umu-run "" exited 0 with it.
  • The script's own umu 1.4.4 zipapp. It is the same umu version, so I expect the same result, but I haven't run it.

Report zip

Not relevant, since the problem is in the setup script, before the lauincher does.

Side note (cosmetic)

On the second run, step 2 lists GE-Proton twice: GE-Proton on this PC: GE-Proton11-15-x86_64 GE-Proton11-15-x86_64. Here ~/.steam/root is a symlink to ~/.local/share/Steam, so the loop over the compatibilitytools.d folders finds the same folder twice. Resolving each folder (e.g. realpath) and skipping duplicates would fix it.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:6698009305 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/340). Originally posted by [I-I-IT](https://github.com/I-I-IT) on 2026-11-30T13:59:33Z. --- **Title:** Linux setup: step 2 stops with "umu could not make the prefix" although the prefix is made (`umu-run ""` exits 1 with GE-Proton11-15) Made by Claude, with some cosmetic changes by me. --- **KLBF Lab version:** v26.11.18 (already in the folder, kept by the script) **Setup script:** `docs/linux/klbf-proton-setup.sh` from `main` (commit 37c34d4, identical to the current raw file on `main`) **Graphics card:** RX 7900 XT (RDNA 3) **System** | | | |---|---| | Distribution | Fedora 44, kernel 7.1.12-200.fc44 | | GPU driver | Mesa 26.2.7, RADV (Vulkan 1.4.354) | | umu-launcher | 1.4.4 (`umu-launcher-1.4.4-1.20260725.cf3d1b1.fc44`, Python 3.14.10) | | Proton | GE-Proton11-15 (downloaded by umu, `PROTONPATH=GE-Proton`) | ### What I did First run of the setup on a PC with no GE-Proton and no prefix: ```sh bash docs/linux/klbf-proton-setup.sh --dir "<KLBF Lab folder>" ``` ### What happened umu downloads GE-Proton11-15 and steamrt4, and Proton makes the prefix. Then, umu exits with ```1``` and the script stops at step 2: ``` Proton: Upgrading prefix from None to 11.0-100 with GE-Proton11-15 (~/.local/share/klbf-lab/prefix/) Proton: Error: unable to use parent for game drive, path ... Proton: Executable is inside wine prefix, launching normally. ntsync: up and running. Application could not be started, or no application associated with the specified file. **ShellExecuteEx failed: File not found.** KLBF Lab setup stopped: umu could not make the prefix (see its messages above) ``` The prefix was complete anyway: `system.reg`, `user.reg`, `drive_c/windows/system32` (842 files), and `version` = `11.0-100`. Running the script a second time works: step 2 says "already made, reused", and steps 3 to 6 finish ("Done", exit 0). `pwsh.exe` is in the prefix, and `d3dcompiler_47.dll` matches its SHA-256 (`1da540a0…480790`). ### Cause In `make_prefix()`, the prefix is made with `"$UMU" ""`. Proton makes the prefix, then tries to start the empty program, which fails (`ShellExecuteEx failed: File not found`). The `|| die` on that line stops the script before the `system.reg` check on the next line runs. I checked it in throwaway prefixes, same umu and GE-Proton: | Command | Exit code | Prefix made | |---|---|---| | `umu-run ""` (new prefix) | **1** | yes | | `umu-run ""` (existing prefix) | **1** | (already there) | | `umu-run cmd /c exit 0` (existing prefix) | 0 | (already there) | | `umu-run wineboot -u` (new prefix) | **0** | yes | So the exit code of 1 comes from the empty program, not from making the prefix. ### Possible fix Make the prefix with `wineboot -u` rather than an empty program (exit 0, prefix made, in my test above): ```sh WINEPREFIX="$PREFIX" GAMEID=umu-default PROTONPATH="$PROTON" "$UMU" wineboot -u || die "umu could not make the prefix (see its messages above)" [ -f "$PREFIX/system.reg" ] || die "umu ran but the prefix has no system.reg" ``` Or keep `""`, and only rely on the `system.reg` check that comes after it. ### Not tested - GE-Proton11-14 (the version used in #195 and #233): I don't know whether `umu-run ""` exited 0 with it. - The script's own umu 1.4.4 zipapp. It is the same umu version, so I expect the same result, but I haven't run it. ### Report zip Not relevant, since the problem is in the setup script, before the lauincher does. ### Side note (cosmetic) On the second run, step 2 lists GE-Proton twice: `GE-Proton on this PC: GE-Proton11-15-x86_64 GE-Proton11-15-x86_64`. Here `~/.steam/root` is a symlink to `~/.local/share/Steam`, so the loop over the `compatibilitytools.d` folders finds the same folder twice. Resolving each folder (e.g. `realpath`) and skipping duplicates would fix it.
PastiiJay commented 2026-11-30 14:31:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-30T14:31:48Z.


Fixed on main thanks to @HandshakeHackin (#343): please download the setup script again and run step 2. Tell us if the prefix is made now.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7281519033 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/340#issuecomment-7281519033). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-30T14:31:48Z. --- Fixed on main thanks to @HandshakeHackin (#343): please download the setup script again and run step 2. Tell us if the prefix is made now.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
PastiiJay/klbf-lab#340
No description provided.