[Bug]: Starting the Command Line fails with `FileNotFoundError`
Describe the bug
The "Command Line" tool fails because of FileNotFoundError: [Errno 2] No such file or directory within a newly created bottle. No settings have been changed and the bottle has been created with the defaults (soda-9.0-1 runner).
To Reproduce
- Open Bottles
- Navigate to Settings -> Advanced -> Bottles Directory and change the directory to some non-default location
- Click on "Create new Bottle"
- Choose a name, set the environment to Gaming and click on Create
- Open The bottle after it has been created
- Navigate to Tools and click on "Command Line"
Expected: The command line opens
Actual: Nothing happens
Package
Flatpak from Flathub
Distribution
Gentoo
Debugging Information
Official Package: true
Version: '51.13'
DE/WM: plasma
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.10.6-zen1
Disk:
Total: 33528705024
Free: 33528553472
RAM:
MemTotal: 62.5GiB
MemAvailable: 53.8GiB
Bottles_envs: null
Troubleshooting Logs
Sep 02 21:35:10 gentoo3 flatpak[71177]: 21:35:10 (INFO) Using Wine Command Line -- launch_terminal
Sep 02 21:35:10 gentoo3 flatpak[71177]: 21:35:10 (INFO) Command: easyterm.py -d -p "#00ffff #2b2d2e" -c 'bash -c '"'"'/home/michi/.var/app/com.usebottles.bottles/data/bottles/runners/soda-9.0-1/bin/wine64 cmd'"'"''
Sep 02 21:35:10 gentoo3 easyterm.py[73206]: Locale not supported by C library.
Using the fallback 'C' locale.
Sep 02 21:35:10 gentoo3 flatpak[73206]: Traceback (most recent call last):
Sep 02 21:35:10 gentoo3 flatpak[73206]: File "/app/bin/easyterm.py", line 12, in <module>
Sep 02 21:35:10 gentoo3 flatpak[73206]: CONF_DEF_CWD = os.getcwd()
Sep 02 21:35:10 gentoo3 flatpak[73206]: ^^^^^^^^^^^
Sep 02 21:35:10 gentoo3 flatpak[73206]: FileNotFoundError: [Errno 2] No such file or directory
Additional context
No response
This happened to me right now.
Seems to be related to the global bottles directory path (I set an external device as my directory)
If i changed it back to the default location (.var/app/com.usebottles.bottles/data/bottles/bottles/) and i recreate the bottle, the error disappears.
@lob19 good catch. I modified the default location as well and it seems related to it. I've edited the original post to reflect this
I have the same problem with v51.16. Fixed it by also setting the working directory in the bottle itself:
Now I can open the command line.
This still should be fixed in Bottles (the configured bottle should respect the globally configured working dir).
Spoke too soon.
You also need to:
- Allow Bottles flatpak to access the external folder (e.g. via Flatseal)
- Do the bottle config directory update upon every start of Bottles (as it resets to the default one)
Definitely needs a fix! :-)
This issue has been automatically closed as part of a cleanup process to help the team manage issues more effectively.
If the problem still persists, feel free to comment and we will gladly reopen it.
This is still an issue with version 51.21