Files and environment
Where appjail keeps its files
Besides these two trees, appjail writes only the menu entries and icons you ask for (and refreshes the desktop's icon
and menu caches), and short-lived files: sockets and identity files in the runtime directory while an app runs, and
temporary files in /tmp (the seccomp filter of an app behind pasta, an icon being converted).
| Path |
Holds |
~/.config/appjail/apps/NAME.toml |
the manifests |
~/.config/appjail/.git |
the manifest history |
~/.local/share/appjail/apps/NAME/app.AppImage |
the pinned AppImage |
~/.local/share/appjail/apps/NAME/root/ |
the extracted tree, with root.sha256 and root.tree.sha256 beside it |
~/.local/share/appjail/apps/NAME/home/ |
the app's private home, /home/app in the jail |
~/.local/share/appjail/apps/NAME/etc/ |
the generated passwd and group of the jail |
~/.local/share/appjail/apps/NAME/pending.json |
a candidate in quarantine (and pending.AppImage for URL apps) |
~/.local/share/appjail/tools/ |
the pinned helper tools |
~/.local/share/appjail/index/sources.json |
the registered catalog sources |
~/.local/share/appjail/index/NAME/ |
per source: current.json, previous.json (for index rollback) and state.json (hash, revision, update time and, for appjail-db, the commit) |
~/.local/share/appjail/staging/ |
temporary directories, removed when the step ends |
~/.local/share/appjail/locks/ |
per app, NAME.lock (one change at a time) and NAME.run (held while the app runs); empty, kept after remove (why) |
${XDG_DATA_HOME:-~/.local/share}/applications/appjail-NAME.desktop |
an app's menu entry |
${XDG_DATA_HOME:-~/.local/share}/icons/hicolor/*/apps/appjail-NAME.png |
its icon |
$XDG_RUNTIME_DIR/appjail-*, $XDG_RUNTIME_DIR/.flatpak/INSTANCE |
sockets and portal identity files of running apps, removed when they end |
Environment variables appjail reads
| Variable |
Effect |
APPJAIL_DATA_DIR |
replaces ~/.local/share/appjail |
APPJAIL_CONFIG_DIR |
replaces ~/.config/appjail |
APPJAIL_ALLOW_HOST_NETWORK |
1: without pasta, download, attestation and catalog jails share the host network (with a warning) instead of being refused; an app's jail is never affected |
GITHUB_TOKEN |
raises the GitHub API rate limit; sent only to api.github.com |
NO_COLOR |
no colour in the output (also when TERM=dumb or not on a terminal) |
XDG_RUNTIME_DIR, WAYLAND_DISPLAY |
where the Wayland socket and the audio sockets are |
DBUS_SESSION_BUS_ADDRESS |
the session bus (only unix:path= addresses; otherwise $XDG_RUNTIME_DIR/bus) |
XDG_DATA_HOME, XDG_CONFIG_HOME |
where menu entries and icons go, and where mimeapps.list is read |
LANG |
passed to the app; TZ too when set |
No other variable of yours reaches an app: the jail's environment is cleared and rebuilt from a fixed list.
The environment inside the app jail
| Variable |
Value |
HOME, USER, LOGNAME, SHELL |
/home/app, app, app, /bin/sh |
PATH |
/app/usr/bin:/usr/local/bin:/usr/bin:/bin |
LANG, TZ |
yours (C.UTF-8 when LANG is unset; TZ only when set) |
TMPDIR, XDG_RUNTIME_DIR |
/tmp, the jail's runtime directory |
APPDIR, APPIMAGE_EXTRACT_AND_RUN |
/app, 1 |
WAYLAND_DISPLAY, XDG_SESSION_TYPE and toolkit hints (GDK_BACKEND, QT_QPA_PLATFORM, MOZ_ENABLE_WAYLAND, ELECTRON_OZONE_PLATFORM_HINT, SDL_VIDEODRIVER) |
for a Wayland app; X11 values and DISPLAY for an Xwayland app; none with display = none |
DBUS_SESSION_BUS_ADDRESS, PULSE_SERVER, GTK_USE_PORTAL |
only with the grants that need them |
the names in the manifest's [env] table |
as set with perms --set-env; never one of the names above |