Description
Describe the bug
There is an issue with the arguments (-a) parameter in "bottles-cli run" in which it will not escape if the executable also uses a dash (-) parameter (argument). It assumes it's part of the bottles-cli command instead.
Passing an argument via the configuration file works, but not via CLI. It's important that bottles-cli escapes the argument so that more complex scripting can send a variable to the application running in bottles.
This is preventing me from running a particular application which otherwise works fantastic in bottles. Unfortunately the application requires a command line parameter with a dash and then a variable to be injected from MIME URL.
Maybe I'm missing something, or if not, then hopefully a solution can be found to allow us to pass these types of arguments.
To Reproduce
The issue can be reproduced with an application that requires the use of a dash-based argument, even if it's the same. Enclosing in quotes should escape it. I've tried single quotes and \ to escape but nothing works.
bottles-cli run -b testbottle -p testapp -a "-a variable"
bottles-cli run -b testbottle -p testapp -a "-z"
bottles-cli run -b testbottle -p testapp -a "-launch"
Bottles returns an error regarding unexpected argument.
Package
Flatpak from Flathub
Distribution
Fedora 36
Troubleshooting Logs
Version: 2022.8.28-brescia-2
Display:
X.org: true
X.org (port): :99.0
Wayland: true
Graphics:
vendors:
intel:
vendor: intel
envs:
DRI_PRIME: '1'
icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_icd.i686.json
prime:
integrated: null
discrete: null
Kernel:
Type: Linux
Version: 5.19.8-200.fc36.x86_64
Distro:
Name: GNOME
Version: '"42 (Flatpak runtime)"'
Disk:
Total: 7962492928
Free: 7962341376
RAM:
MemTotal: 14.8GiB
MemAvailable: 9.8GiB
Bottles_envs: null
Display Protocol
Wayland
Display Backend used by Bottles
Wayland
Additional context
No response