desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Windows BrowserCode install from settings passes malformed temp path to bash

Open ancientagent opened this issue 6 months ago • 0 comments

Description

Installing BrowserCode from Browser Use Desktop settings fails on Windows before the BrowserCode installer can run.

The failure appears to be in the Desktop app install handoff: a Windows temp path is passed to /bin/bash in a form where the backslashes are stripped, so bash looks for a non-existent path.

Discord: voider GitHub account submitting: ancientagent

Environment

  • OS: Windows
  • Browser Use Desktop version: 0.0.31 (C:\Users\baris\AppData\Local\browser_use_desktop\app-0.0.31)
  • BrowserCode version installed by workaround: 0.1.6
  • Shell available: Git Bash at C:\Program Files\Git\bin\bash.exe
  • Provider context: Codex was configured/being used in Browser Use Desktop

Steps to reproduce

  1. Open Browser Use Desktop on Windows.
  2. Go to settings.
  3. Use the BrowserCode install/setup action shown in the app.
  4. Observe the install failure in the app output/log area.

Actual behavior

The install flow fails with:

/bin/bash: C:usersbarisappdatalocaltempbcode-install.sh:no such file or directory

Expected behavior

The BrowserCode installer should run successfully from the Desktop settings flow.

The intended temp path was likely something like:

C:\Users\baris\AppData\Local\Temp\bcode-install.sh

But bash received:

C:usersbarisappdatalocaltempbcode-install.sh

That looks like the Windows path was passed to bash without conversion/escaping, so the backslashes were stripped or interpreted as escape characters.

Workaround that succeeded

Running the official BrowserCode installer directly through Git Bash worked:

& "C:\Program Files\Git\bin\bash.exe" -lc 'curl -fsSL https://bcode.sh/install | bash'

Result:

BrowserCode 0.1.6 installed to /c/Users/baris/.bcode/bin/bcode

Verified afterward:

& "C:\Users\baris\.bcode\bin\bcode.exe" --version

Output:

0.1.6

Suggested fix

When launching BrowserCode installation from Browser Use Desktop on Windows, either:

  • pipe the installer directly into bash, e.g. bash -lc "curl -fsSL https://bcode.sh/install | bash"
  • convert the temp path to a bash-compatible path before passing it to bash, e.g. /c/Users/baris/AppData/Local/Temp/bcode-install.sh
  • or quote/escape the Windows path correctly for the selected shell.

This seems to belong in browser-use/desktop rather than browser-use/browsercode, because the BrowserCode installer works when launched directly through Git Bash.

ancientagent avatar May 16 '26 18:05 ancientagent