Skip to content

[Bug]: Symlinks to home directories can still appear inside bottles #3728

@jntesteves

Description

@jntesteves

Describe the bug

This is a reissue of #572, which still happens under certain conditions. The fix substitutes symlinks with real directories on bottle creation, but Wine-based runners and Proton-based runners have different directories for the userdir, $USER and steamuser, respectively. So, when changing runner from one type to the other, a new user directory is created within the bottle and that directory still contain symlinks to the user's $HOME dir.

related to #572
related to #3042

To Reproduce

  • Create a new bottle with a Wine-based runner, like sys-wine
  • Change the runner of the bottle to a Proton-based runner, like Soda
  • In the directory drive_c/users/steamuser there will be undesirable symlinks to $HOME

Package

Flatpak from Flathub

Distribution

Fedora 41

Debugging Information

Official Package: true
Version: '51.18'
DE/WM: gnome
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.12.10-200.fc41.x86_64
Disk:
    Total: 8061935616
    Free: 8061763584
RAM:
    MemTotal: 15.0GiB
    MemAvailable: 8.1GiB
Bottles_envs: null

Troubleshooting Logs

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions