Skip to main content

device_data_dir

Function device_data_dir 

Source
pub fn device_data_dir() -> Option<PathBuf>
Expand description

The device’s own store of apps and the runtimes they run on: APPS_DATA_DIR_ENV when it names an absolute path, else the computer’s store where its operating system made one (COMPUTER_APPS_DIR), else the platform data directory’s tilo-apps.

One directory per device, not per person: the daemon that installs an app and launches it reads the same files as every person’s session, so a runtime it starts an app on is never inside one person’s private directories. On Tilo OS the daemon runs as an account of its own, whose home no person’s session reads: both find the computer’s store instead.