Bottles
  • Welcome
  • 📌Getting started
    • Installation
    • First run
    • Environments
  • Components
    • Runners
    • DXVK
  • Bottles
    • App preferences
    • Run .exe/.msi/.bat/.lnk files
    • Shortcuts
    • Bottle preferences
    • Dependencies
    • Programs
    • Installers
    • Versioning
    • Backups & Duplicate
    • Import from other managers
    • Configuration files
  • Utilities
    • Logs & Debugger
    • CMD
    • Winecfg
    • Task manager
    • Regedit
    • Uninstaller
  • Advanced
    • CLI
    • Use Bottles as wine command
    • xdg-open links
  • 🎩Contribute
    • Missing dependencies
  • Flatpak
    • Can't enable Steam Proton manager
    • Migrate directories to Flatpak
    • Black screen or silent crash
    • Expose directories
      • Use system home
  • FAQ
    • Why Bottles?
    • Where is Winetricks?
    • Updates and old versions
    • Video GStreamer Problems
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Flatpak

Expose directories

Use this guide if you need to reach other directories in the Flatpak.

PreviousBlack screen or silent crashNextUse system home

Last updated 1 year ago

Was this helpful?

The Bottles Flatpak is sandboxed and confined in its directories. It makes use of to let you open and save files in other directories.

Despite this, there are some cases where you may want to explicitly expose directories to the Flatpak, e.g.:

  • let the find windows prefixes from other managers directories;

  • use the file chooser provided by the runner to open/save files in your system, outside the sandbox.

To achieve this, we can run the command

flatpak override --user --filesystem="path" com.usebottles.bottles

or to manage more complex cases through a GUI we can use an external program named , it can be easily installed from Flathub using a compatible store like GNOME Software, elementary Appcenter or Discover. It is also possible to install through the command line:

flatpak install flathub com.github.tchx84.Flatseal

At the first launch of Flatseal you need to select Bottles from the left menu, then scroll to the Filesystem section and make your choices.

We suggest to not expose all your system or home but manually add each directory in Other files. In the following example we are exposing the ~/Games folder from our home (the default location for Lutris windows prefixes).

Then the Bottles Importer will see the new directory.

portals
Importer
Flatseal
Flatseal > Bottles
Exposing the ~/Games directory