logo
pub fn is_sandboxed() -> bool
Expand description

Check whether the application is running inside a sandbox.

The function checks whether the file /.flatpak-info exists or if the environment variable GTK_USE_PORTAL is set to 1.