Package Details: wechat-universal-bwrap 4.1.13.9-1

Git Clone URL: https://aur.archlinux.org/wechat-universal-bwrap.git (read-only, click to copy)
Package Base: wechat-universal-bwrap
Description: WeChat (Universal) with bwrap sandbox
Upstream URL: https://linux.weixin.qq.com/
Licenses: LicenseRef-wechat-license
Conflicts: wechat-universal
Provides: wechat-universal
Replaces: wechat-beta, wechat-beta-bwrap
Submitter: 7Ji
Maintainer: 7Ji (leaeasy)
Last Packager: 7Ji
Votes: 147
Popularity: 1.98
First Submitted: 2024-03-14 03:09 (UTC)
Last Updated: 2026-09-04 19:15 (UTC)

Pinned Comments

shilka commented on 2025-02-13 11:08 (UTC)

@dazuixia @lyhokia @swimming03 你们是否也使用了非GNOME/KDE的其他wayland WM/DE? 又研究了一下这个问题,如果不使用bwrap沙盒直接执行wechat是可以的,排除了wechat本身的问题。我认为问题出在bwrap、xwayland的配合和调用上面,导致微信无法在xwayland中启动。我使用的WM是Hyprland,推测可能和各个WM/DE有一定的关系。目前我找到一个可行的缓解方式,安装:xwayland-satellite,并提前执行这一程序,之后正常启动wechat-universal。

@7Ji 如果其他人也可以缓解,烦请置顶一下这个解决方案,或者如果您很熟悉bwrap,是否可以看看通过某些参数解决它和xwayland的交互问题。

7Ji commented on 2024-03-14 06:21 (UTC) (edited on 2024-12-26 09:08 (UTC) by 7Ji)

本软件包在Github上亦有仓库: https://github.com/7Ji-PKGBUILDs/wechat-universal-bwrap/ (仓库未启用issues,有问题请直接在此页面提出)

各位如有改进意见,欢迎在Github仓库页提交PR :)

抓取新版本的脚本和PKGBUILD在同一层。执行python fetch_uos_wechat_release.py获取UOS仓库内的重打包版本,执行./fetch_tencent_wechat_release.sh获取腾讯官方的版本。如果发现软件过期,请善用本界面的标记过期功能。:)


默认配置下,只有~/Documents/WeChat_Data/home 作为容器内的~,其他宿主文件和文件夹均不暴露在容器内

可以编写~/.config/wechat-universal/binds.list来设置更多的被暴露到容器内的文件/文件夹,每行一个路径,绝对路径或相对于~的相对路径


要将微信文件的主要路径修改至 ~/Documents/WeChat_Data 外的其他路径,请设置环境变量 WECHAT_DATA_DIR,同理为绝对路径或相对于~的相对路径


更多参数与环境变量,请在命令行输入 wechat-universal --help 查看

Latest Comments

1 2 3 4 5 6 .. 41 Next › Last »

abcd commented on 2026-09-06 12:26 (UTC) (edited on 2026-09-06 12:35 (UTC) by abcd)

有BUG。。每次一打开微信,就自动把ALT+A这个截图快捷键强行覆盖gnome自定义按键

[abcd@archlinux ~]$ gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings ['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/waylandglobalshortcut_60cf3e2567c6329/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']

一打开完微信,就变成

[abcd@archlinux ~]$ dconf dump /org/gnome/settings-daemon/plugins/media-keys/ [/] custom-keybindings=['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/waylandglobalshortcut_60cf3e2567c6329/'] help=@as [] home=['<Super>e'] search=['<Super>s'] www=['<Super>1']

[custom-keybindings/custom0] binding='<Super>2' command='ghostty' name='tty'

[custom-keybindings/custom1] binding='<Super>2' command='ghostty' name='tty'

[custom-keybindings/waylandglobalshortcut60cf3e2567c6329] binding='<Alt>a' command="'/usr/bin/gdbus' call --session --dest 'com.tencent.wechat.waylandglobalshortcutd3c81e34e639ba5c2' --object-path '/com/tencent/wechat/waylandglobalshortcutd3c81e34e639ba5c2/GlobalShortcuts' --method 'com.tencent.wechat.waylandglobalshortcutd3c81e34e639ba5c2.GlobalShortcuts.Activate' 'screenshot'" name='截图' [abcd@archlinux ~]$ gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings ['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/waylandglobalshortcut60cf3e2567c6329/']

sukanka commented on 2026-09-05 02:37 (UTC)

现在的 wechat-universal.sh 还是使用的x11, 需要用wayland的话可以参考gpt给的 gist

ZenithCC commented on 2026-09-01 04:16 (UTC)

请问深色模式和浅色模式在KDE下不随global theme自动切换,这是微信本身不支持还是容器的原因?

crux commented on 2026-08-23 09:10 (UTC) (edited on 2026-08-23 09:10 (UTC) by crux)

@sgtqwq binds.list 中不能有空行,也可能是因为这个

duguyipiao commented on 2026-06-14 11:50 (UTC)

If you cannot open links in the default browser after the recent upgrade of xdg-desktop-portal, have a look at this: https://gitlab.archlinux.org/archlinux/packaging/packages/xdg-desktop-portal/-/work_items/4

7Ji commented on 2026-03-16 01:41 (UTC) (edited on 2026-03-16 01:45 (UTC) by 7Ji)

@sgtqwq

在 binds.list 设置包含 ~ 的相对路径后,无法启动 Custom bind: '' bwrap: Can't find source path : No such file or directory 请问如何解决?

不要包含 ~/;所有路径,无论在何处执行 wechat-universal 包装脚本,都是切换目录到用户 HOME 以后,使用 readlink 严格解析的,因此不能展开 Shell 魔法字符 ~。例如,如果你要绑定 ~/Downloads,则只要写 Downloads 即可,例:

> (/tmp) cat ~/.config/wechat-universal/binds.list
Downloads
Pictures
.config/Kingsoft
/opt/kingsoft/wps-office/office6
> (/tmp) wechat-universal
D-Bus calling with: dbus-send --session --dest=org.freedesktop.DBus --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames
Using '/home/nomad7ji/Documents/WeChat_Data' as Wechat Data folder
IME workaround for fcitx applied
Custom bind: '/home/nomad7ji/Downloads'
Custom bind: '/home/nomad7ji/Pictures'
Custom bind: '/home/nomad7ji/.config/Kingsoft'
Custom bind: '/opt/kingsoft/wps-office/office6'

sgtqwq commented on 2026-03-15 06:12 (UTC) (edited on 2026-03-15 06:12 (UTC) by sgtqwq)

在 binds.list 设置包含 ~ 的相对路径后,无法启动

Custom bind: ''
bwrap: Can't find source path : No such file or directory

请问如何解决?

7Ji commented on 2026-02-11 16:57 (UTC)

@jiakai

似乎官方用相同的文件名替换了 deb 包,我现在下载下来无法通过 pkgbuild 里面的 sha256 校验……

8445e4eb0074cd5dd1fa2dc34f70a548f1e1feeb7aeb452ad69dcbd2804d01a2 wechat-universal-4.1.0.13-x86_64.deb

更新到 4.1.0.16 了,我这边也刚推了更新

jiakai commented on 2026-02-11 14:25 (UTC)

似乎官方用相同的文件名替换了 deb 包,我现在下载下来无法通过 pkgbuild 里面的 sha256 校验……

8445e4eb0074cd5dd1fa2dc34f70a548f1e1feeb7aeb452ad69dcbd2804d01a2  wechat-universal-4.1.0.13-x86_64.deb