running_under_snap


Description:

public static bool running_under_snap () throws Error

Detects if you are running inside of a Snap sandbox.

See also: [func@Portal.running_under_sandbox].

Returns:

true if the current process is running under a Snap sandbox, or false if either unsandboxed or an error was encountered in which case throws will be set