wechat.env 只对微信本体有效, 对启动器无效
Search Criteria
Package Details: wechat-uos-bwrap 1.0.0.241-8
Package Actions
Git Clone URL: | https://aur.archlinux.org/wechat-uos-bwrap.git (read-only, click to copy) |
---|---|
Package Base: | wechat-uos-bwrap |
Description: | WeChat Qt |
Upstream URL: | https://weixin.qq.com/ |
Keywords: | beta bwrap qt sandbox universal uos wechat |
Licenses: | LicenseRef-Proprietary |
Replaces: | wechat-beta-bwrap, wechat-universal-bwrap |
Submitter: | Kimiblock |
Maintainer: | Kimiblock (sukanka) |
Last Packager: | Kimiblock |
Votes: | 18 |
Popularity: | 4.39 |
First Submitted: | 2024-03-05 15:37 (UTC) |
Last Updated: | 2024-05-20 13:10 (UTC) |
Dependencies (43)
- alsa-lib
- at-spi2-core (at-spi2-core-gitAUR)
- bash (bash-devel-static-gitAUR, bash-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR)
- bubblewrap (bubblewrap-gitAUR, bubblewrap-overlayfsAUR, bubblewrap-suid)
- bzip2 (bzip2-gitAUR)
- cairo (cairo-gitAUR)
- dbus (dbus-gitAUR, dbus-x11-gitAUR, dbus-selinuxAUR)
- expat (expat-gitAUR)
- findutils (findutils-selinuxAUR, findutils-gitAUR, busybox-coreutilsAUR)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- freetype2 (freetype2-gitAUR, freetype2-qdoledAUR, freetype2-macosAUR)
- gcc-libs (gcc11-libsAUR, gcc-libs-gitAUR, gcc-libs-snapshotAUR, gccrs-libs-gitAUR)
- glib2 (glib2-gitAUR, glib2-patched-thumbnailerAUR, glib2-selinuxAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- libdrm (libdrm-gitAUR)
- libx11 (libx11-gitAUR)
- libxcb (libxcb-gitAUR)
- libxcomposite
- libxdamage
- libxext (libxext-gitAUR)
- libxfixes
- libxkbcommon (libxkbcommon-gitAUR)
- libxkbcommon-x11 (libxkbcommon-x11-gitAUR)
- libxrandr (libxrandr-gitAUR)
- libxrender
- lsb-release
- mesa (amdonly-gaming-mesa-gitAUR, mesa-gitAUR, mesa-minimal-gitAUR, mesa-amber)
- nspr (nspr-hgAUR)
- nss (nss-hgAUR)
- openssl-1.1
- pango (pango-gitAUR)
- util-linux (busybox-coreutilsAUR, util-linux-selinuxAUR, util-linux-aesAUR)
- wayland (wayland-gitAUR, wayland-chromiumAUR, wayland-asan-gitAUR)
- xcb-util-image
- xcb-util-keysyms
- xcb-util-renderutil
- xcb-util-wm
- xdg-dbus-proxy
- zenity (qarma-gitAUR, zenity-gtk3AUR, zenity-gitAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compatAUR)
- libarchive (libarchive-gitAUR) (make)
- gamescope (gamescope-gitAUR, gamescope-sk-gitAUR, gamescope-plusAUR, gamescope-nvidia-gitAUR, gamescope-skAUR, gamescope-nvidiaAUR, gamescope-fmlAUR) (optional)
Required by (0)
Sources (10)
Kimiblock commented on 2024-06-03 08:30 (UTC)
Rvn0xsy commented on 2024-06-03 06:51 (UTC)
不好意思,刚刚又尝试了一次,我前面也尝试过关闭沙盒,还是一样的报错:
在wechat.env
文件中添加了trashAppUnsafe=1
环境变量
$ cat /home/**/.local/share/WeChat_Data/wechat.env
# Envs
trashAppUnsafe=1
WAYLAND_DISPLAY=
isWeChatEnvPresent=1
$ wechat-uos-qt
[Info] User defined bwrap options can be set in /home/**/.local/share/WeChat_Data/bwrap.optargs
Launching WeChat UOS...
ls: 无法访问 '/dev/video*': 没有那个文件或目录
[Info] /home/**/.local/share/WeChat_Data/wechat.env exists
Running as unit: run-u930.service
Press ^] three times within 1s to disconnect TTY.
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
Kimiblock commented on 2024-06-03 04:48 (UTC)
Kimiblock commented on 2024-06-03 04:48 (UTC)
@Rvn0xsy 请尝试关闭沙盒
Rvn0xsy commented on 2024-06-03 03:07 (UTC) (edited on 2024-06-03 03:08 (UTC) by Rvn0xsy)
我遇到了和 @Freed 一样的问题
桌面环境是:i3wm
$ /bin/bash /usr/bin/wechat-uos-qt
[Info] User defined bwrap options can be set in /home/**/.local/share/WeChat_Data/bwrap.optargs
Launching WeChat UOS...
ls: 无法访问 '/dev/video*': 没有那个文件或目录
[Info] /home/**/.local/share/WeChat_Data/wechat.env exists
Running as unit: run-u877.service
Press ^] three times within 1s to disconnect TTY.
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
~/.local/share/WeChat_Data/wechat.env
的内容为:
# Envs
WAYLAND_DISPLAY=
isWeChatEnvPresent=1
请问i3wm下可以运行这个软件包吗?
zjsxwc commented on 2024-05-22 07:57 (UTC) (edited on 2024-05-22 07:59 (UTC) by zjsxwc)
如果不关闭沙盒(全局设置 wechatUnsafe=1)时,无法直接读写文件。
由于flatpak沙盒限制了这个应用访问真实的系统文件,所有需要把 ~/.local/share/WeChat_Data/ 目录映射出来,比如
ln -s ~/.local/share/WeChat_Data/ ~/download/UOS-qt-WeChat_Data
这样对~/download/UOS-qt-WeChat_Data读写就能在微信里读写文件了
Kimiblock commented on 2024-05-18 14:42 (UTC)
@nganfei 请正确设置 XMODIFIERS
并等待下个版本
nganfei commented on 2024-05-18 13:43 (UTC)
请问如何可以使用 gcin 输入法?
Kimiblock commented on 2024-05-10 07:41 (UTC)
Could you please try wechat-uos-qt --actions f5aaebc6-0014-4d30-beba-72bce57e0650
Freed commented on 2024-05-10 05:49 (UTC)
Now
❯ wechat-uos-qt
[Warn] No ${XAUTHORITY} detected! Do you have any X server running?
Launching WeChat UOS...
ls: cannot access '/dev/video*': No such file or directory
[Info] Sourcing env vars...
Running as unit: run-u188.service
Press ^] three times within 1s to disconnect TTY.
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
Is it
❯ cat ~/.local/share/WeChat_Data/wechat.env
WAYLAND_DISPLAY=
wechatUnsafe=1
?
I try to right click and select Disable Sandbox
. It still cannot be launched.
Pinned Comments
Kimiblock commented on 2024-06-03 04:48 (UTC)
Wiki 位于 https://wiki.archlinuxcn.org/wiki/%E5%BE%AE%E4%BF%A1#%E5%BE%AE%E4%BF%A1_Linux_%E5%8E%9F%E7%94%9F%E7%89%88%E9%87%8D%E6%9E%84
Kimiblock commented on 2024-03-16 15:36 (UTC)
请使用 wechat-uos 先行登录一次再尝试使用本包
Kimiblock commented on 2024-03-07 15:44 (UTC) (edited on 2024-06-03 04:50 (UTC) by Kimiblock)
Arm 架构由于缺少设备不对稳定性作任何保证
分享文档时, 请先将📃放入数据目录: 右键应用程序图标, 选择 Open WeChat Data 或手动打开
"${XDG_DATA_HOME}"/WeChat_Data
(默认为~/.local/share/WeChat_Data
), 微信会将这个目录作为家目录.WeChat_Data/wechat.env
中的环境变量将会自动导入至微信.变量
trashAppUnsafe = 1
将会关闭沙盒不支持纯 Wayland 环境, 微信并未构建 Wayland 模块.