想要在 archlinux 上使用 steam,由于 steam 需要 32 位库支持,首先应当启用 multilib
打开文件 /etc/pacman.conf

shell
1
$ sudo nvim /etc/pacman.conf

在文件中添加以下内容:

shell
1
2
[multilib]
Include = /etc/pacman.d/mirrorlist

接着更新软件包数据库:

shell
1
$ sudo pacman -Syu

安装 steam 以及其依赖:

shell
1
$ sudo pacman -S steam lib32-nvidia-utils lib32-alsa-plugins lib32-mesa

配置 xwayland 兼容性:
由于 hyprland 默认使用 wayland, 而 steam 依赖 xwayland,就需要配置一下 hyprland 的 xwayland

shell
1
$ nvim ~/.config/hypr/hyprland.conf

添加以下内容:

plaintext
text
1
2
3
4
5
6
xwayland {
force_zero_scaling = true # 禁用 XWayland 缩放
}

env = GDK_SCALE,1
env = XCURSOR_SIZE,24

接下来在命令行中启动 steam,方便调试(第一次启动时 steam 会在网上下载更新)

有可能在更新时遇到如下问题:

plaintext
1
2
3
4
5
6
7
>[2025-05-07 18:15:36] Exhausted list of download hosts
>[2025-05-07 18:15:36] Download Complete.
>[2025-05-07 18:15:36] Saving metrics to disk (/home/HaoIne/.local/share/Steam/package/steam_client_metrics.bin)
>[2025-05-07 18:15:36] Error: Failed to determine download location for universe 1
>UpdateUI: skip show logodlmopen steamui.so failed: steamui.so: cannot open shared object file: No such file or directory
>Failed to load steamui.so - dlerror(): (null)
>[2025-05-07 18:15:56] Shutdown

这时候就需要使用steam自带的修复工具:

shell
1
>$ steam --reset

接着再次启动应该就不会有问题了