Skip to content

Instantly share code, notes, and snippets.

View samuelpecher's full-sized avatar
👋

Samuel Péchèr samuelpecher

👋
  • France
  • 08:01 (UTC)
View GitHub Profile
@samuelpecher
samuelpecher / playwright-arch-linux-fix.md
Created March 12, 2026 20:14 — forked from mewset/playwright-arch-linux-fix.md
Playwright on Arch Linux - use system Chromium instead of bundled

Playwright on Arch Linux - just use system Chromium

So you're on Arch and Playwright is being a pain? Yeah, same. Here's what happens:

$ npm init playwright@latest
BEWARE: your OS is not officially supported by Playwright; installing dependencies for ubuntu24.04-x64 as a fallback.
Installing dependencies...
sh: line 1: apt-get: command not found
Failed to install browsers
@samuelpecher
samuelpecher / playwright-arch-linux-fix.md
Created March 12, 2026 20:14 — forked from DreamShaded/playwright-arch-linux-fix.md
Playwright on Arch Linux - use system Chromium instead of bundled

Playwright on Arch Linux - just use system Chromium

So you're on Arch and Playwright is being a pain? Yeah, same. Here's what happens:

$ npm init playwright@latest
BEWARE: your OS is not officially supported by Playwright; installing dependencies for ubuntu24.04-x64 as a fallback.
Installing dependencies...
sh: line 1: apt-get: command not found
Failed to install browsers
# If you, like me, have all of your various source-code-like projects in ~/src/
# this is how to give yourself per-project shell history.
#
# I wish I'd done this years ago.
#
# First, in your .bashrc file, you redefine the cd, pushd and popd builtins to be "do the builtin bit,
# then do one other thing (set_src_history.sh, below) like so:
cd () {