JBrowser Source Docs
You are reading the documentation for JBrowser 1.5.1. The newest release is 1.5.4. Go to the latest documentation

jbrowser.paths

Generated from the source code of JBrowser 1.5.1.

jbrowser/paths.py · 115 lines

Filesystem layout for JBrowser's persistent state.

AppPaths#

class AppPathssource
AppPaths(root: str | os.PathLike | None=None)

Resolves every on-disk location JBrowser uses.

Roaming data (settings, session, history, vault) lives under %APPDATA%\JBrowser. Disposable caches live under %LOCALAPPDATA%\JBrowser\Cache so they never roam. A custom root (--profile-dir) keeps everything in one portable folder.

Attributes

Name Value
OWNED ('Profiles', 'Logs', 'Cache', 'JBrowser', 'settings.json', 'session.json', 'history.sql…

AppPaths.ensure#

ensure() -> Nonesource

AppPaths.profile_storage#

profile_storage(space_id: str) -> Pathsource

AppPaths.profile_cache_dir#

profile_cache_dir(space_id: str) -> Pathsource

AppPaths.wipe_profile#

wipe_profile(space_id: str) -> Nonesource

AppPaths.clear_profile_cookies_and_cache#

clear_profile_cookies_and_cache(cookies: bool=True, cache: bool=True) -> Nonesource

Delete cookie databases and/or HTTP caches of every space (profiles must not be running).

AppPaths.factory_reset#

factory_reset() -> Nonesource

Erase every file JBrowser has written (called at start-up, before anything is opened).

Functions#

resource_path#

resource_path(*parts: str) -> strsource

Absolute path of a bundled read-only resource (assets/...), from source or the frozen exe.