Skip to content

[Bug]: The placeholder folder in ~/.var is not being deleted after I delete a bottle created in a custom directory #3912

Open
@moonlitpath

Description

@moonlitpath

Describe the bug

When I create a bottle in a custom directory, Bottles also creates a folder with the same name in ~/.var/app/com.usebottles.bottles/data/bottles/bottles/, which contains a placeholder.yml file. When I delete this bottle, Bottles removes placeholder.yml; however, the folder it was in is not deleted. This prevents the creation of bottles with the same name in the future because Bottles shows an error: "Unable to create Bottle. Failed to create placeholder directory/file."

To Reproduce

  1. Create a bottle, choose any Bottle Directory other than "Default" (give Bottles appropriate permissions if necessary)
  2. In the bottle's details, click "Delete Bottle" from the hamburger menu
  3. Create a bottle with the same name in the same directory

Package

Flatpak from Flathub

Distribution

Fedora Silverblue 42

Debugging Information

Official Package: true
Version: '51.21'
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.14.6-300.fc42.x86_64
Disk:
    Total: 8353452032
    Free: 8353288192
RAM:
    MemTotal: 15.6GiB
    MemAvailable: 12.8GiB
Bottles_envs: null

Troubleshooting Logs

Additional context

No response

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