[BUG] Claude Code launches Pacman game on Ubuntu when checking installation method
Description
On Ubuntu/Debian systems with the pacman game package installed (https://packages.ubuntu.com/noble/pacman / https://manpages.ubuntu.com/manpages/resolute/en/man6/pacman.6.html), Claude Code accidentally launches the game instead of detecting the Arch Linux package manager.
Steps to Reproduce
- Install the pacman game on Ubuntu:
sudo apt install pacman - Run
claude - A Pacman game window opens
Root Cause
Claude Code runs pacman -Qo <binary_path> to detect if it was installed via the Arch Linux package manager. However, on Ubuntu with the game installed, /usr/games/pacman (the arcade game) is found in PATH instead.
The game receives -Qo /path/to/claude as arguments, ignores them, and launches normally.
Suggested Fix
Check if running on Arch-based distro before calling pacman.
Environment
- OS: Ubuntu 24.04
- Claude Code: 2.1.20
- Installed packages:
pacman(game, version 10-19)
---
UPD: This is a rare edge case. I'll just remove the game myself.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗