Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

Can't get USB drive exposed to Bottle

Open methanoid opened this issue 1 year ago • 5 comments

I can set the drive D for example as /mnt/media/james/HDMI-CAP (name of USB drive) and it stores that but when I start the program and go to open a file and select D in the dialog nothing is shown.

Probably a user error but I can't see anything to help me in the docs?

methanoid avatar Jun 01 '24 10:06 methanoid

What are your file system permissions for the Bottles flatpak? Have you modified them or are they the default permissions?

vercingetorx avatar Jun 04 '24 18:06 vercingetorx

Defaults PLUS something (cant find now) that came from Flatpak website for adding ability to read outside the default places (sorry to be vague, thought I had bookmarked that page). I'd check now but I had to wipe my install and re-do and havent added that Bottle yet....

methanoid avatar Jun 05 '24 08:06 methanoid

If you have not done so already, try using Flatseal and giving Bottles explicit permission to access the path where your usb is mounted.

vercingetorx avatar Jun 05 '24 15:06 vercingetorx

I am having the same problem, though not specifically with USB drive. Using v51.9 (stuck there due to #3218 -- no fault of the Bottles team). Fundamentally, the problem is that I've got Flatpak, Bottles, and Wine between me and my goal, and I don't know any of them well enough to succeed. The goal is simply to have one specific folder accessible to one specific bottle. Steps I have taken:

  • Using Flatseal, in the Filesystem section for Bottles, add ~/Projects under Other files. (As an aside, what does the Persistent section do that is different?)
  • In Bottles, in the bottle settings under Compatibility->Manage Drives, map P to Projects. I see a symlink added for dosdevices/p:. (Another aside, Bottles adds symlinks for d:: -> /dev/sdc and e:: -> /dev/sdc1. I can't remove them in Manage Drives, and if I delete the symlinks Bottles recreates them. What's up with that?)
  • Using Legacy Wine Tools->Configuration I map P: to ~/Projects.

In Legacy Wine Tools->Explorer, P: appears but is empty. In Command Line, "p:" returns "Path not found." and "dir p:" returns "File not found." If I create a symlink to ~/Projects anywhere under drive_c, that folder appears is both Explorer and Command Line, but again shows as empty and returns "File not found."

What is it I am missing? Thanks!

diggernet avatar Jun 15 '24 16:06 diggernet

Ok, wait, I just tried something new which gave partial success... Looking at my running processes, I manually killed these processes:

  • 4072448 C:\windows\system32\winedevice.exe
  • 4072458 C:\windows\system32\winedevice.exe
  • 4072441 ~/.var/app/com.usebottles.bottles/data/bottles/runners/soda-8.0-2/bin/wineserver
  • 4060952 bwrap --args 45 bottles

After doing this and running Bottles again, the symlink in drive_c works! So that means the Flatseal setting + symlink works, but requires everything to be fully shut down and restarted before taking effect.

Now the questions are:

  • What is the correct way to shut everything down, rather than looking for processes and manually killing them? [Edit: Tried to reproduce this and can't. I don't know why those processes were hanging around before, but now they always exit cleanly as expected.]
  • What am I missing that P: still doesn't work?

diggernet avatar Jun 15 '24 17:06 diggernet

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.

github-actions[bot] avatar May 29 '25 23:05 github-actions[bot]