- stub file system inside the sandbox that is basically always required. It
- assumes a merged-usr setup, e.g. it will add `/bin` as a symlink to
- `/usr/bin`. It also gives read-only access to some files in the home directory
- that are often needed to make a basic shell work: `.bashrc`, `.bash_aliases`,
- `.profile` and the `bin` directory.
-- `profiles.DESKTOP` is intended to make GUI applications work. It provides
- access to DRI, X11, ALSA, Wayland, and PulseAudio. Furthermore, some GUI
- configuration files (`.XCompose`, fontconfig, and default mime-type
- associations) are made available to the sandbox. This also sets up the D-Bus
- proxy and gives the application access to notifications, screen saver control,
- status icons, and the flatpak portals (however, actually using these portals
- is untested and would likely require further integration). Finally, it makes
+ stub file system inside the sandbox that is basically always required, such as
+ an empty folder to serve as XDG_RUNTIME_DIR. It assumes a merged-usr setup,
+ e.g. it will add `/bin` as a symlink to `/usr/bin`. It also gives read-only
+ access to some files in the home directory that are often needed to make a
+ basic shell work: `.bashrc`, `.bash_aliases`, `.profile` and the `bin`
+ directory.
+- `profiles.DESKTOP("name")` is intended to make GUI applications work. It
+ extends `DEFAULT` by providing access to DRI, X11, ALSA, Wayland, and
+ PulseAudio. Furthermore, some GUI configuration files (`.XCompose`,
+ fontconfig, and default mime-type associations) are made available to the
+ sandbox. The `name` is used to create an XDG_RUNTIME_DIR that will be shared
+ among all instances of this sandbox. This also sets up the D-Bus proxy and
+ gives the application access to notifications, screen saver control, status
+ icons, and the flatpak portals (however, actually using these portals is
+ untested and would likely require further integration). Finally, it makes