X11下也遇到了类似的linuxqq x11连接数一直升高的问题。同样报 Maximum number of clients reached
Search Criteria
Package Details: linuxqq 5:3.2.26_46494-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/linuxqq.git (read-only, click to copy) |
|---|---|
| Package Base: | linuxqq |
| Description: | New Linux QQ based on Electron |
| Upstream URL: | https://im.qq.com/linuxqq |
| Keywords: | electron linuxqq qq tencent |
| Licenses: | LicenseRef-QQ |
| Conflicts: | linuxqq-nt-bwrap |
| Submitter: | redchenjs |
| Maintainer: | Integral (Purofle) |
| Last Packager: | Integral |
| Votes: | 109 |
| Popularity: | 1.24 |
| First Submitted: | 2019-10-24 14:27 (UTC) |
| Last Updated: | 2026-03-08 07:29 (UTC) |
Dependencies (9)
- alsa-lib
- at-spi2-core (at-spi2-core-gitAUR)
- gjs (gjs-gitAUR, gjs-nohammerAUR)
- gtk3 (gtk3-classicAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-no_deadkeys_underlineAUR)
- libvips (libvips-gitAUR, libvips-notiffAUR)
- nss (nss-hgAUR)
- openjpeg2 (openjpeg-gitAUR)
- openslide
- libappindicator-gtk3 (libappindicator) (optional) – Allow QQ to extend a menu via Ayatana indicators in Unity, KDE or Systray (GTK+ 3 library).
Required by (4)
Sources (4)
Terrasse commented on 2026-03-09 02:36 (UTC)
bczhc commented on 2026-02-27 05:00 (UTC) (edited on 2026-03-03 11:46 (UTC) by bczhc)
Wayland+Xwayland下,遇到了linuxqq x11连接数一直升高的问题。每几分钟就会涨1,直到达到255。这时如果再启动其他x11应用,就会启动不了,报Maximum number of clients reached。比如现在,我这又是124了:
❯ sudo ss -x src "*/tmp/.X11-unix/*" | grep -Eo "[0-9]+\s*$" | while read port
do sudo ss -p -x | grep -w $port | grep -v X11-unix
done | grep -Eo '".+"' | sort | uniq -c | sort -rn
[sudo] password for bczhc:
124 "qq"
10 "steamwebhelper"
9 "steam"
1 "gpu-screen-reco"
1 "fcitx5"
1 "clash-verge"
上面的命令来自 https://unix.stackexchange.com/a/700637
更新:
现在又满了。
❯ ./ls-connections
Tue Mar 3 19:44:13 CST 2026
215 "qq"
11 "steamwebhelper"
11 "steam"
1 "wineserver"
1 "tabtip.exe",pid=1985234,fd=31),("wineserver"
1 "tabtip.exe",pid=1985234,fd=14),("wineserver"
1 "tabtip.exe"
1 "qq",pid=183096,fd=21),("qq"
1 "qq",pid=183096,fd=20),("qq"
1 "qq",pid=183096,fd=19),("qq"
1 "fcitx5"
1 "explorer.exe",pid=1985177,fd=23),("wineserver"
1 "explorer.exe",pid=1985177,fd=20),("wineserver"
1 "explorer.exe",pid=1985177,fd=12),("wineserver"
1 "explorer.exe"
1 "clash-verge"
❯ ls /proc/1758467/fd | wc -l
1001
❯ glxgears
Maximum number of clients reached
Error: couldn't open display :0
我搞不懂它这是到底在搞什么。
zlicdt commented on 2026-02-22 08:03 (UTC)
经测试发现在 Wayland KDE 下,使用 fcitx5,不设置任何IM环境变量的情况下,使用如下参数可以正常使用输入法:
linuxqq --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime
可以将其加入到/usr/share/applications/qq.desktop,形如:
[Desktop Entry]
Name=QQ
Exec=linuxqq %U -enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime
Terminal=false
Type=Application
Icon=qq
StartupWMClass=QQ
Categories=Network;
Comment=QQ
MianSoft commented on 2026-02-19 17:40 (UTC)
wayland下观看屏幕共享有问题,如果使用则x11正常
但是输入法会有问题无法使用(后续发现在启动时添加GTK_IM_MODULE=fcitx可解决)
mzy0070524 commented on 2025-12-13 17:10 (UTC)
@ston,我发现linux并不是在$HOME创建文件,而是在哪个目录下运行linuxqq命令就在哪里创建文件
Dawn_Ocean commented on 2025-12-01 20:21 (UTC)
@yhshzh0 这个脚本稍微有点性能问题,我们可以用clipnotify这个包来监听 X11 剪贴板的变化,然后把图片哈希比较换成了cmp -s:
从 X11 到 Wayland 的脚本:
#!/bin/bash
LOCK_FILE="/tmp/clipboard_bridge_lock"
TMP_DIR="/tmp/clipboard_sync_$$"
mkdir -p "$TMP_DIR"
trap "rm -rf '$TMP_DIR'; exit" INT TERM EXIT
COLOR_RESET="\033[0m"
COLOR_GREEN="\033[32m"
COLOR_BLUE="\033[34m"
COLOR_YELLOW="\033[33m"
COLOR_CYAN="\033[36m"
log() {
local timestamp=$(date '+%H:%M:%S')
echo -e "${COLOR_CYAN}[$timestamp]${COLOR_RESET} $1"
}
log_sync() {
local direction=$1
local type=$2
local format=$3
case "$direction" in
"x11->wl")
echo -e "${COLOR_CYAN}[$(date '+%H:%M:%S')]${COLOR_RESET} ${COLOR_GREEN}✓${COLOR_RESET} X11 → Wayland | ${COLOR_YELLOW}${type}${COLOR_RESET}${format}"
;;
esac
}
for cmd in xclip wl-copy clipnotify cmp; do
if ! command -v "$cmd" &> /dev/null; then
echo "Error: Missing dependency '$cmd'"
exit 1
fi
done
echo "Starting X11 -> Wayland sync (Event-driven with clipnotify)..."
clipboard_sync() {
local current_x11_img="$TMP_DIR/curr_x11.img"
local current_wl_img="$TMP_DIR/curr_wl.img"
local last_x11_img="$TMP_DIR/last_x11.img"
local last_text=""
rm -f "$LOCK_FILE"
while clipnotify; do
if [ -f "$LOCK_FILE" ]; then
sleep 0.2
continue
fi
# ==========================
sleep 0.05
img_synced=false
x11_targets=$(xclip -selection clipboard -t TARGETS -o 2>/dev/null)
[ -z "$x11_targets" ] && continue
mime_type=""
if [[ "$x11_targets" == *"image/png"* ]]; then
mime_type="image/png"
elif [[ "$x11_targets" == *"image/jpeg"* ]]; then
mime_type="image/jpeg"
elif [[ "$x11_targets" == *"image/gif"* ]]; then
mime_type="image/gif"
fi
if [[ -n "$mime_type" ]]; then
xclip -selection clipboard -t "$mime_type" -o > "$current_x11_img" 2>/dev/null
wl-paste -t "$mime_type" > "$current_wl_img" 2>/dev/null
if cmp -s "$current_x11_img" "$current_wl_img"; then
continue
fi
if ! cmp -s "$current_x11_img" "$last_x11_img"; then
wl-copy -t "$mime_type" < "$current_x11_img"
cp "$current_x11_img" "$last_x11_img"
log_sync "x11->wl" "Image" " ($mime_type)"
img_synced=true
fi
continue
fi
# -------- Text sync --------
if [[ "$img_synced" == false ]]; then
current_text=$(wl-paste --type text/plain 2>/dev/null || true)
x11_text=$(xclip -selection clipboard -o 2>/dev/null || true)
if [[ -n "$x11_text" && "$x11_text" != "$last_text" && "$x11_text" != "$current_text" ]]; then
echo -n "$x11_text" | wl-copy --type text/plain
last_text="$x11_text"
local preview="${x11_text:0:50}"
preview="${preview//$'\n'/↵}"
preview="${preview//$'\r'/}"
preview="${preview//$'\t'/⇥}"
[[ ${#x11_text} -gt 50 ]] && preview="${preview}..."
log_sync "x11->wl" "Text" " \"$preview\""
fi
fi
done
}
log "Clipboard sync service started"
log "Monitoring Wayland ↔ X11 clipboard sync..."
clipboard_sync
从 Wayland 到 X11 的脚本:
后台运行 wl-paste --watch bash -c ~/.local/bin/clipboard-wltox11.sh
#!/bin/bash
LOCK_FILE="/tmp/clipboard_bridge_lock"
trap "rm -f '$LOCK_FILE'" EXIT
touch "$LOCK_FILE"
types=$(wl-paste --list-types)
if [[ "$types" == *"image/png"* ]]; then
wl-paste --type image/png | xclip -selection clipboard -t image/png
elif [[ "$types" == *"image/jpeg"* ]]; then
wl-paste --type image/jpeg | xclip -selection clipboard -t image/jpeg
elif [[ "$types" == *"image/gif"* ]]; then
wl-paste --type image/gif | xclip -selection clipboard -t image/gif
else
wl-paste | xclip -selection clipboard
fi
sleep 0.1
rm -f "$LOCK_FILE"
yhshzh0 commented on 2025-12-01 13:08 (UTC)
wayland下的剪切板问题可以参考 https://blog.imlast.top/2025/10/15/linuxqq-clipboard-issue/ “虽然 linuxqq 基于的 Electron 已经默认使用 Wayland 协议,但其复制仍然选择将内容输出到 xclip。”
axty commented on 2025-11-30 14:05 (UTC) (edited on 2025-11-30 14:05 (UTC) by axty)
隔壁linuxqq-nt-bwrap的评论区里的@lintkey有留下评论发现https://forum.archlinuxcn.org/t/topic/14208/4改了 ~/.config/gtk-3.0/settings.ini 后能正常输入了
axty commented on 2025-11-30 14:01 (UTC)
我发现使用--disable-features=UseOzonePlatform参数也可以让qq回退到x11从而可以使用输入法
abcd commented on 2025-11-08 12:00 (UTC)
QQ群聊語音通話的時候,麥克風輸入有1秒以上的延遲,但是看自己pavucontrol麥克風輸入是實時的,收聽別人說話也是實時,只有自己說話時,隔1-2秒以上麥克風才亮,請問是什麼BUG?
Pinned Comments
Integral commented on 2023-03-14 09:20 (UTC)
目前通过删除 linuxqq 包自带的 libvips 临时解决了浏览图片时崩溃的问题 PS:感谢 @ayatale 的建议