Skip to content

[BUG] - Doesn't start modded game when game profile contains spaces on linux (Valheim) #1888

@bnn1

Description

@bnn1

Describe the bug
When a game profile contains spaces, they are not properly escaped in the arguments passed to the linux wrapper, as a result base game (unmodded) is launched.

To Reproduce
Steps to reproduce the behavior:

  1. In r2modman create a profile that contains spaces, e.g. "My Gaming Profile"
  2. Install a few mods
  3. Launch modded game
  4. Discover that mods are not loaded

Expected behavior
Mods are loaded

Additional context
Tried to run the wrapper manually passing the same arguments that r2modman does:

λ › "/home/bnn1/.config/r2modmanPlus-local/Valheim/linux_wrapper.sh" /home/bnn1/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- /home/bnn1/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=892970 -- /home/bnn1/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/_v2-entry-point --verb=waitforexitandrun -- /home/bnn1/.local/share/Steam/steamapps/common/SteamLinuxRuntime/scout-on-soldier-entry-point-v2 -- /home/bnn1/.local/share/Steam/steamapps/common/Valheim/valheim.x86_64 --doorstop-enabled true --doorstop-target-assembly /home/bnn1/.config/r2modmanPlus-local/Valheim/profiles/M2 Modpack Jewelcraft/BepInEx/core/BepInEx.Preloader.dll --r2profile M2 Modpack Jewelcraft
/home/bnn1/.config/r2modmanPlus-local/Valheim/linux_wrapper.sh: line 50: /home/bnn1/.config/r2modmanPlus-local/Valheim/profiles/M2/start_game_bepinex.sh: No such file or directory
λ ›                                                                                                                                  ~

The path that includes the profile name M2 Modpack Jewelcraft should either be enquoted everywhere it's used or spaces should be properly escaped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMinor issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions