Skip to content

[Bug]: Command line is not escaping quote character for xfce-terminal #3732

@uben0

Description

@uben0

Describe the bug

When trying to open the command line on a bottle, if xfce-terminal is the chosen terminal emulator, the invoked command is not properly escaped as it can be seen here:

Command: xfce4-terminal -e 'sh -c '/home/evvie/.local/share/bottles/runners/soda-9.0-1/bin/wine64 cmd'' 
xfce4-terminal: Unknown option "cmd"

Because, here

command = " ".join(self.terminal) % "'sh -c %s'" % f"{command}"
the string interpolation is not escaping the quotes.

To Reproduce

  • Ensure you only have xfce-terminal
  • Launch Bottle from a terminal to see the logs
  • Create a new bottle
  • Click on Tool > Command Line

Package

Flatpak from Flathub

Distribution

NixOs with Xfce

Debugging Information

Official Package: false
Version: '51.17'
DE/WM: xfce
Display:
    X.org: true
    X.org (port): :0.0
    Wayland: false
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.12.11
Disk:
    Total: 8033767424
    Free: 8033767424
RAM:
    MemTotal: 15.0GiB
    MemAvailable: 11.7GiB
Bottles_envs: null
Tools and Libraries:
    cabextract: true
    p7zip: true
    patool: true
    glibc_min: '2.40'
    icoextract: true
    pefile: true
    orjson: true
    markdown: true
    ImageMagick: true
    FVS: true
    xdpyinfo: true

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