Package Details: wechat-universal-bwrap 1.0.0.241-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://weixin.qq.com
Licenses: GPLv3, proprietary
Conflicts: wechat-universal, wechat-universal-privileged
Provides: wechat-universal
Replaces: wechat-beta, wechat-beta-bwrap
Submitter: 7Ji
Maintainer: 7Ji (devome)
Last Packager: devome
Votes: 57
Popularity: 26.39
First Submitted: 2024-03-14 03:09 (UTC)
Last Updated: 2024-04-25 02:50 (UTC)

Pinned Comments

devome commented on 2024-03-15 06:08 (UTC) (edited on 2024-05-08 08:02 (UTC) by devome)

关于自动缩放

最新版已设置自动缩放QT_AUTO_SCREEN_SCALE_FACTOR=1,如缩放仍有问题,请自行为微信单独设置环境变量QT_SCALE_FACTOR=<缩放比例>。如果有“菜单编辑器”,直接在“菜单编辑器”中给微信增加环境变量即可,如果没有菜单编辑器,可以将/usr/share/applications/wechat-universal.desktop复制为~/.local/share/applications/wechat-universal.desktop,然后将Exec=所在行改Exec=env QT_SCALE_FACTOR=<缩放比例> wechat-universal %u


关于输入法

在打包的启动脚本中,会自动根据所设置的全局环境变量XMODIFIERS来设置输入法是fcitx还是ibus,如果你没有设置全局环境变量XMODIFIERS,那么你需要参考上一条,手动为微信单独设置环境变量QT_IM_MODULE=fcitxQT_IM_MODULE=ibus


关于微信自身的行为

目前的微信Linux版缺失一些在其他平台上已经有的功能,比如引用、拖曳文件发送、双击打开文件、另存文件等等,这不是打包的问题,这是微信Linux版本身就缺少的,如有针对这种情况的意见和建议,应该向微信官方反馈:设置->关于微信->意见反馈,也可以让他们感受到广大Linux用户的期待和需求。


关于loong64架构的注意事项

由于要兼顾多架构,所以未将loong64架构需要的一项依赖liblol加入depends,请使用loong64架构的用户自行安装好liblol

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

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

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

抓取新版本的脚本和PKGBUILD在同一层。执行python fetch_uos_wechat_release.py即可获取。如果发现软件过期,请善用本界面的标记过期功能。:)


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

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


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

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 13 Next › Last »

mochaa commented on 2024-03-27 13:30 (UTC)

包 license (目前)應加上 GPLv3,因為 wechat 中靜態鏈接了 https://github.com/desktop-app 的內容。

proof:

$ rg -a desktop-app wechat
117290:// https://github.com/desktop-app/legal/blob/master/LEGAL

已反饋給 WXG 相關同事處理。

mochaa commented on 2024-03-27 13:24 (UTC) (edited on 2024-03-27 13:51 (UTC) by mochaa)

提供一個 libuosdevicea.so 的 stub:

/*
 * licensestub - compat layer for libuosdevicea
 * Copyright (C) 2024 Zephyr Lykos <self@mochaa.ws>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 */
#define _GNU_SOURCE

#include <string.h>

// MAC address with colon stripped
void uos_get_mac(char* out) {
    if (out) {
        strcpy(out, "000000000000");
    }
}

void uos_get_hddsninfo(char* out) {
    if (out) {
        strcpy(out, "SN");
    }
}

// MD5 of hddsninfo
void uos_get_hwserial(char* out) {
    if (out) {
        strcpy(out, "92666505ce75444ee14be2ebc2f10a60");
    }
}

// Hardcoded
void uos_get_mb_sn(char* out) {
    if (out) {
        strcpy(out, "E50022008800015957007202c59a1a8-3981-2020-0810-204909000000");
    }
}

void uos_get_osver(char* out) {
    if (out) {
        strcpy(out, "UnionTech OS Desktop");
    }
}

void uos_get_licensetoken(char* out) {
    if (out) {
        strcpy(out, "djEsdjEsMSwyLDk5QUFFN0FBQVdRQjk5OFhKS0FIU1QyOTQsMTAsOTI2NjY1MDVjZTc1NDQ0ZWUxNGJlMmViYzJmMTBhNjAsQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE6ZjA3NjAwYzZkNmMyMDkyMDBkMzE5YzU2OThmNTc3MGRlYWY1NjAyZTY5MzUxZTczNjI2NjlhNzIyZTBkNTJiOTNhYzk0MmM3YTNkZTgxNjIxMmUwMDA1NTUwODg4N2NlMDQ4ODMyNTExY2JhNGFiMjdmYzlmZjMyYzFiNTYwNjMwZDI3ZDI2NmE5ZGIxZDQ0N2QxYjNlNTNlNTVlOTY1MmU5YTU4OGY0NWYzMTMwZDE0NDc4MTRhM2FmZjRlZGNmYmNkZjhjMmFiMDc5OWYwNGVmYmQ2NjdiNGYwYzEwNDhkYzExNjYwZWU1NTdlNTdmNzBlNjA1N2I0NThkMDgyOA==");
    }
}

int uos_is_active() {
    return 0;
}

剩下檢查 DISTRIB_ID=uoswechat 本體內,需要手動掛載。

everyx commented on 2024-03-27 04:00 (UTC)

@everyx usr下配置fonts不生效,你可以把 75-noto-color-emoji.conf 这段配置链接到/etc/fonts/conf.d目录下, 然后重启,但是首先确保安装了noto-fonts-emoji

@yifwon 谢谢,可以了,补充一下,75-noto-color-emoji.conf 需要安装 noto-color-emoji-fontconfig-no-binding 或者 noto-color-emoji-fontconfig 或者手动创建。

7Ji commented on 2024-03-27 02:53 (UTC)

@douglarek 是,本来就没有,功能是没有做全的。有奇怪某些功能是不是原生缺失的话,可以去试下 lihe07 维护的无数据沙盒的 wechat-universal ,是这边的fork,但注意保护数据

douglarek commented on 2024-03-27 02:45 (UTC)

linux 版本是本来就没有单条信息引用功能吗

yifwon commented on 2024-03-27 02:44 (UTC)

@everyx usr下配置fonts不生效,你可以把75-noto-color-emoji.conf这段配置链接到/etc/fonts/conf.d目录下, 然后重启,但是首先确保安装了noto-fonts-emoji

jat@Intel-i5-10500:~> cd /etc/fonts/conf.d
jat@Intel-i5-10500:conf.d> 
jat@Intel-i5-10500:conf.d> ls -l 75-noto-color-emoji.conf 
lrwxrwxrwx 1 root root 57  3月22日 12:16 75-noto-color-emoji.conf -> /usr/share/fontconfig/conf.avail/75-noto-color-emoji.conf
jat@Intel-i5-10500:conf.d> cat 75-noto-color-emoji.conf  
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

    <!-- Add generic family. -->
    <match target="pattern">
        <test qual="any" name="family"><string>emoji</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <!-- This adds Noto Color Emoji as a final fallback font for the default font families. -->
    <match target="pattern">
        <test name="family"><string>sans</string></test>
        <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test name="family"><string>serif</string></test>
        <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test name="family"><string>sans-serif</string></test>
        <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test name="family"><string>monospace</string></test>
        <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
    </match>

    <!-- Block Symbola from the list of fallback fonts. -->
    <selectfont>
        <rejectfont>
            <pattern>
                <patelt name="family">
                    <string>Symbola</string>
                </patelt>
            </pattern>
        </rejectfont>
    </selectfont>

    <!-- Use Noto Color Emoji when other popular fonts are being specifically requested. -->
    <match target="pattern">
        <test qual="any" name="family"><string>Apple Color Emoji</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>Segoe UI Emoji</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>Segoe UI Symbol</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>Android Emoji</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>Twitter Color Emoji</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>Twemoji</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>Twemoji Mozilla</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>TwemojiMozilla</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>EmojiTwo</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>Emoji Two</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>EmojiSymbols</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family"><string>Symbola</string></test>
        <edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
    </match>

</fontconfig>

everyx commented on 2024-03-27 01:43 (UTC)

不能显示 emoji 图标有办法解决吗?

7Ji commented on 2024-03-26 08:34 (UTC)

@Fingertap

请问有详细的路径配置的文档吗?我在HOME、Documents下总是会看见xwechat_files和WeChat_Data. 我希望能把这些文件都放到HOME/AppData/WeChat下。

  1. 默认配置下不可能在HOME下直接创建任何文件,xwechat_files的路径应该是Documents/WeChat_Data/xwechat_files。如果你在HOME下直接看到了xwechat_files,直接移除。
  2. 要放到其他路径,设置环境变量WECHAT_DATA_DIR,绝对路径或者相对于~的相对路径

Fingertap commented on 2024-03-26 08:24 (UTC)

请问有详细的路径配置的文档吗?我在HOME、Documents下总是会看见xwechat_files和WeChat_Data. 我希望能把这些文件都放到HOME/AppData/WeChat下。

Fingertap commented on 2024-03-26 06:08 (UTC)

谢谢解释。