Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 22.04 安装微信 #148

Open
dushaoshuai opened this issue Sep 7, 2024 · 0 comments
Open

Ubuntu 22.04 安装微信 #148

dushaoshuai opened this issue Sep 7, 2024 · 0 comments

Comments

@dushaoshuai
Copy link
Owner

安装

使用 flatpak 的方式安装 wechat-universal。

Flatpak 是一种应用程序分发和虚拟化技术,旨在让应用程序在不同的 Linux 发行版上统一运行。它通过将应用程序及其所有依赖打包在一起,隔离在独立的沙箱环境中运行,确保兼容性和安全性。Flatpak 提供一个中央应用程序仓库 Flathub,用户可以方便地安装、更新应用程序,并且每个应用都可以独立于系统库运行。

调整微信可访问的目录

默认,微信仅可访问 ~/Documents/xwechat_files 目录,我感觉非常不方便。

覆盖默认设置,把家目录暴露给微信:

flatpak override --user --filesystem=home com.tencent.WeChat

让微信窗口关闭后,可以再次打开

有个 bug,微信窗口关闭后,无法通过点击 dock 栏图标、系统托盘图标的方式再次打开。

按照 web1n/wechat-universal-flatpak#19 (comment) 所说,安装 gnome shell 的扩展 AppIndicator and KStatusNotifierItem Support,可以解决。

参考,安装 gnome shell 的浏览器扩展:

$ sudo apt-get install chrome-gnome-shell

页面搜索、安装 AppIndicator and KStatusNotifierItem Support 扩展。重启或重新登录后,打开微信,关掉窗口,双击系统托盘图标,可以再次打开微信窗口了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant