Gemini CLI in Firebase Studio

Hello everyone,

I wanted to point out a bug/error in the system, but perhaps there’s already a workaround for it. I was just trying to use Gemini CLI via Firebase Studio, but unfortunately, an error occurs during Google authentication, preventing me from proceeding. Here’s the error:

~/web4-sbba-2 (main*) no sandbox (see /docs) gemini-2.5-pro (100% context left)

node:events:502
throw er; // Unhandled ‘error’ event
^

Error: spawn xdg-open ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted ‘error’ event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: ‘ENOENT’,
syscall: ‘spawn xdg-open’,
path: ‘xdg-open’,
spawnargs: [
https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A37281%2Foauth2callback&access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&state=0081d38940ae6e72584c5f182a0df518110ed5b0cb2cabc9e88a46df8c5706ed&response_type=code&client_id=681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com
]
}

Node.js v20.19.0
npm notice
npm notice New major version of npm available! 10.8.2 → 11.4.2
npm notice Changelog: Release v11.4.2 · npm/cli · GitHub
npm notice To update run: npm install -g npm@11.4.2
npm notice