bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.2k stars 258 forks source link

Can't get USB drive exposed to Bottle #3384

Open methanoid opened 3 months ago

methanoid commented 3 months ago

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?

xioren commented 3 months ago

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

methanoid commented 3 months ago

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....

xioren commented 3 months ago

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

diggernet commented 2 months ago

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:

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 commented 2 months ago

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

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: