Skip to content

[Bug]: Runner seems to be getting reset on launch #4917

Closed

Description

@cpuccino

Describe the bug

When restarting bottles, it resets the runner to soda-9.0-1

To Reproduce

  1. Set runner via settings to anything not soda-9.0-1 (in my case, I'm trying to set it to proton ge)
  2. Close and Re-Open bottle - at this point bottle.yml still has the runner you've set
  3. Click on a bottle - bottle.yml will go back to soda-9.0-1 - and in my case since i don't have that installed, it shows a warning popup.

Package

Flatpak from Flathub

Distribution

Ubuntu 26.04

Debugging Information

flatpak run --command=bottles-cli com.usebottles.bottles info health-check
Official Package: true
Version: '67.5'
DE/WM: ubuntu
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
Graphics:
    vendors:
        nvidia:
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: /usr/share/vulkan/icd.d/nvidia_icd.json
            nvngx_path: /usr/lib/x86_64-linux-gnu/GL/nvidia-615-71-09/lib/nvidia/wine
    prime:
        integrated: null
        discrete: null
    Vulkan: true
Kernel:
    Type: Linux
    Version: 7.0.0-38-generic
Disk:
    Total: 16452182016
    Free: 16451989504
RAM:
    MemTotal: 30.6GiB
    MemAvailable: 22.0GiB
Bottles_envs: null

Activity

  1. nuknes commented on Oct 29, 2026

    @nuknes

    cannot seem to reproduce this issue.

  2. cpuccino commented on Oct 29, 2026

    @cpuccino
    Author
    Screencast.From.2026-10-30.05-36-58.mp4

    let me know if there's any other deets you need.

  3. mirfalltnixein commented on Nov 2, 2026

    @mirfalltnixein
    Contributor

    I tried to reproduce this on Bottles 67.5 (Flathub) with a bottle whose runner wasn't installed, like yours. Opening it showed "Missing Runner" and switched the bottle to the first installed runner. I then picked ge-proton11-11, restarted Bottles and opened the bottle again: it kept ge-proton11-11, and the log showed the change was written to bottle.yml.

    In your video, both changes are gone after the restart: the automatic switch to soda-11.0-10 and your choice of ge-proton10-33. So it looks like Bottles can't save bottle.yml on your system, or saves it somewhere other than where it reads it from. A failed save isn't shown in the UI; it only appears in the log. Could you check these?

    1. Start Bottles from a terminal with flatpak run com.usebottles.bottles, change the runner, and paste the output. Look especially for a traceback right after Setting Key Runner=….
    2. Is the bottle stored in a custom location? Please post the output of:
      cd ~/.var/app/com.usebottles.bottles/data/bottles/bottles/
      ls -la "Mass Effect Legendary Edition"
      cat "Mass Effect Legendary Edition/placeholder.yml"
      
      If placeholder.yml exists, also post the Path:, Custom_Path: and Runner: lines from the bottle.yml in the folder it points to.
  4. cpuccino commented on Nov 3, 2026

    @cpuccino
    Author
    1. Logs
    (bottles:2): Adwaita-CRITICAL **: 09:53:04.577: Trying to add AdwStatusPage as a child to an AdwPreferencePage, but only AdwPreferencesGroup is allowed
    09:53:07 (INFO) [Eagle] Reloading YARA rules... 
    09:53:07 (INFO) [Eagle] YARA rules loaded 
    09:53:08 (INFO) Catalog installers loaded 
    09:53:16 (INFO) Doing runner update for bottle: Mass Effect Legendary Edition 
    09:53:16 (INFO) There is no running wineserver. 
    09:53:16 (INFO) Setting Key Runner=ge-proton10-33 for bottle Mass Effect Legendary Edition… 
    09:53:16 (INFO) Using Wine Runtime tool -- send_status(-u) 
    09:53:16 (INFO) Executing command: /home/cpuccino/.var/app/com.usebottles.bottles/data/bottles/runners/ge-proton10-33/files/bin/wine64 wineboot -u /nogui 
    fsync: up and running.
    09:53:20 (INFO) Importing bundle to Mass Effect Legendary Edition registry 
    09:53:21 (INFO) Using Wine Registry CLI -- import_bundle 
    09:53:21 (INFO) Executing command: /home/cpuccino/.var/app/com.usebottles.bottles/data/bottles/runners/ge-proton10-33/files/bin/wine64 reg import /home/cpuccino/.var/app/com.usebottles.bottles/data/bottles/temp/f4aff492-e5da-4d43-960d-b30de883a7b6.reg 
    fsync: up and running.
    09:53:22 (INFO) Import bundle result: '' 
    
    1. placeholder.yml doesn't exist - This bottle is from
    ➜  ~ cd ~/.var/app/com.usebottles.bottles/data/bottles/bottles/
    ls -la "Mass Effect Legendary Edition"
    cat "Mass Effect Legendary Edition/placeholder.yml"
    total 20
    drwxr-xr-x 3 cpuccino cpuccino 4096 May  8 16:45 .
    drwxr-xr-x 6 cpuccino cpuccino 4096 Jun 28 21:30 ..
    -rw-r--r-- 1 cpuccino cpuccino 6826 May  8 16:45 bottle.yml
    drwxr-xr-x 2 cpuccino cpuccino 4096 May  8 16:45 drive_c
    cat: 'Mass Effect Legendary Edition/placeholder.yml': No such file or directory
    

    Found something odd - /home/cpuccino/.var/app/com.usebottles.bottles/data/bottles/bottles/Mass Effect Legendary Edition/bottle.yml

    Path: /mnt/Storage/BottlesLibrary/Mass Effect Legendary Edition/Pfx/Mass-Effect-Legendary-Edition
    Registry_Rules: []
    Runner: soda-9.0-1
    RunnerPath: ''
    Sandbox:
        share_net: false
        share_sound: false
    State: 0
    Uninstallers: {}
    Update_Date: '2026-04-30 18:15:59.833211'
    VKD3D: vkd3d-proton-3.0.1
    

    so this is not being updated.

    The one being updated is /mnt/Storage/BottlesLibrary/Mass Effect Legendary Edition/Pfx/Mass-Effect-Legendary-Edition/bottle.yml

    Path: /mnt/Storage/BottlesLibrary/Mass Effect Legendary Edition/Pfx/Mass-Effect-Legendary-Edition
    Registry_Rules: []
    Runner: ge-proton10-33
    RunnerPath: ''
    Sandbox:
        share_input: false
        share_net: false
        share_sound: false
        share_usb: false
    State: 0
    Uninstallers: {}
    Update_Date: '2026-11-04 09:53:16.644595'
    VKD3D: vkd3d-proton-3.0.1
    

    So bottles updates the bottle.yml in my SSD, but on restart it gets overriden by the local copy. All the folders in ~/.var/app/com.usebottles.bottles/data/bottles/bottles are empty. (just a bottle.yml and an empty drive_c`.

    This is most likely the issue - but I'm not exactly sure if the issue is on the bottle side or my side.

  5. mirfalltnixein commented on Nov 3, 2026

    @mirfalltnixein
    Contributor

    Thanks, that's the cause, and I can reproduce it now. A bottle in a custom location should have only a placeholder.yml in ~/.var/app/com.usebottles.bottles/data/bottles/bottles/<name>/, pointing at the real folder. Yours has a bottle.yml there instead. So at startup Bottles reads that old copy (soda-9.0-1), while every change is saved to the Path it contains, on /mnt/Storage. The change works until the next restart, and then the old copy is read again.

    To fix this bottle, add the missing placeholder.yml:

    cd ~/.var/app/com.usebottles.bottles/data/bottles/bottles/
    printf 'Path: %s\n' "/mnt/Storage/BottlesLibrary/Mass Effect Legendary Edition/Pfx/Mass-Effect-Legendary-Edition" > "Mass Effect Legendary Edition/placeholder.yml"
    

    Do the same for your other bottles, using the Path: from each one's bottle.yml. The old bottle.yml is then ignored, so you can leave it in place.

    I tested this in Bottles 67.5 with a test bottle in the same state (custom path, stale local bottle.yml, missing runner, no placeholder). Without the placeholder I got your result: after a restart it was back on the old runner with "Missing Runner". With the placeholder, the runner I picked was still there after a restart, with no dialog.

    One thing to check afterwards: Bottles saves the whole config, so while the old copy is loaded, any save also overwrites the real bottle.yml on /mnt/Storage with the old values. In my test, just opening the bottle replaced the runner I had picked. You'll probably have to pick the runner again, and it's worth checking each bottle's other settings and programs.

    Do you remember how these folders were created? For example, restoring a backup, copying your data from another install, or moving the bottles by hand. They're named after the bottle (with spaces), while Bottles would name the placeholder folder Mass-Effect-Legendary-Edition, so they don't look like what Bottles creates for a custom location. Knowing that would show whether something in Bottles produces this state. Either way, Bottles could detect it: when a bottle.yml has Custom_Path set and points to a folder with its own bottle.yml, it could read that one instead of the stale copy.

  6. cpuccino commented on Nov 4, 2026

    @cpuccino
    Author

    It's been a while since I installed them - but pretty sure all i did was import each bottle - so i did a backup in my old system (to my SSD) and then imported each of them to the new one.

    I was thinking that maybe I could've created the bottles locally first then imported? but I assume only having an empty drive_c and bottle.yml would rule that out.

    Regardless - It works now thanks! Feel free to close the issue - seeing as no one else has reported this issue - it might be fair to assume that it's either a rare bug - or there was something i did that was hacky.

  7. mirfalltnixein commented on Nov 4, 2026

    @mirfalltnixein
    Contributor

    Glad it works now, and thanks for the details. They were enough to find where those folders came from.

    Importing a configuration backup on Bottles before 65.0 (August 2026) created exactly this: a folder named after the bottle with an empty drive_c, and a bottle.yml that still pointed at the original custom path, but no placeholder.yml. Your bottles kept working because the data was still on /mnt/Storage, so nothing looked wrong until a setting had to survive a restart. So it wasn't anything hacky on your side, assuming that's the kind of backup you used. I ran that old import code here with a config backup from a custom-path bottle and got the same folder.

    65.0 changed that import (21055ba), so new imports shouldn't end up like this, but bottles imported earlier stay in this state until they get a placeholder.yml.

  8. mirkobrombin commented on Nov 4, 2026

    @mirkobrombin
    Member

    The loader now reads the external bottle's current configuration instead of the stale local copy, even when placeholder.yml is missing. If the external location is unavailable, it leaves it alone. Fixed in 4a3611d and available in the latest cpak.

  9. cpuccino commented on Nov 4, 2026

    @cpuccino
    Author

    Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions