diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-18 10:58:04 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-30 10:34:35 +0200 |
commit | 8546f48bb7291b1de621e9356ab8e399663258e2 (patch) | |
tree | bff7622117a1c5f80a016d98eb45a1f57e9d28cb /qutebrowser/utils/version.py | |
parent | bd3130e8afad31670c3fa7ee38e88a21ed8a8ad1 (diff) | |
download | qutebrowser-8546f48bb7291b1de621e9356ab8e399663258e2.tar.gz qutebrowser-8546f48bb7291b1de621e9356ab8e399663258e2.zip |
Rename version.is_sandboxed() to is_flatpak()
(cherry picked from commit 5ce8a9c9c19e2aaec591b191d3c3efebd1957fa7)
For easier backporting of changes.
Diffstat (limited to 'qutebrowser/utils/version.py')
-rw-r--r-- | qutebrowser/utils/version.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py index ffb50e054..b9ca21f6d 100644 --- a/qutebrowser/utils/version.py +++ b/qutebrowser/utils/version.py @@ -189,8 +189,12 @@ def distribution() -> Optional[DistributionInfo]: parsed=parsed, version=dist_version, pretty=pretty, id=dist_id) -def is_sandboxed() -> bool: - """Whether the environment has restricted access to the host system.""" +def is_flatpak() -> bool: + """Whether qutebrowser is running via Flatpak. + + If packaged via Flatpak, the environment is has restricted access to the host + system. + """ current_distro = distribution() if current_distro is None: return False |