Skip to content

Instantly share code, notes, and snippets.

@karuboniru
Last active October 10, 2021 01:47
Show Gist options
  • Save karuboniru/062506a30998f521855b2aff44af07df to your computer and use it in GitHub Desktop.
Save karuboniru/062506a30998f521855b2aff44af07df to your computer and use it in GitHub Desktop.
Podman QQ
podman run --name qq \
--device /dev/snd --net=host --ipc=host \ # remove net=host if you don't want this
--device=/dev/dri/card0:/dev/dri/card0 \
--device=/dev/dri/renderD128:/dev/dri/renderD128 \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v ${XDG_RUNTIME_DIR}/pulse/native:/run/user/0/pulse/native \
-e PULSE_SERVER=unix:/run/user/0/pulse/native \
-v $HOME/containerhome:/root:Z \ # choose a path you like, same for following
-v $HOME/containerhome/TencentFiles:/TencentFiles:Z \
-v $HOME/文档/Fonts:/usr/share/fonts/Windows:Z \ # external fonts, any path in /usr/share/fonts will be fine
-e DISPLAY=unix$DISPLAY \
-e XMODIFIERS=$XMODIFIERS \
-e QT_IM_MODULE=$QT_IM_MODULE \
-e GTK_IM_MODULE=$GTK_IM_MODULE \
-e GID=0 \
-e UID=0 \
bestwu/qq:im
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment