Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix linux profile detection for chromium users
Laith Weinbergere44ce7ce732b
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex 8e0a007b9..e4f42098f 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -408,7 +408,7 @@ class BrowserSession(BaseModel):'Could not detect Chrome profile directory for your platform.\n''Expected locations:\n'' macOS: ~/Library/Application Support/Google/Chrome\n'- ' Linux: ~/.config/google-chrome\n'+ ' Linux: ~/.config/google-chrome or ~/.config/chromium\n'' Windows: %LocalAppData%\\Google\\Chrome\\User Data')diff --git a/browser_use/skill_cli/utils.py b/browser_use/skill_cli/utils.pyindex 2dc90d867..4fd724bf1 100644--- a/browser_use/skill_cli/utils.py+++ b/browser_use/skill_cli/utils.py@@ -213,7 +213,11 @@ def get_chrome_profile_path(profile: str | None) -> str | None:if system == 'Darwin':return str(Path.home() / 'Library' / 'Application Support' / 'Google' / 'Chrome')elif system == 'Linux':- return str(Path.home() / '.config' / 'google-chrome')+ base = Path.home() / '.config'+ for name in ('google-chrome', 'chromium'):+ if (base / name).is_dir():+ return str(base / name)+ return str(base / 'google-chrome')elif system == 'Windows':return os.path.expandvars(r'%LocalAppData%\Google\Chrome\User Data')else: