在 openSUSE 上如何优雅地使用微信?

微信新版本 241 出来了,不知道更新啥了

经过在 openSUSE-Leap-15.5-DVD-x86_64 中安装测试,与 wechat-beta-1.0.0.238 是一样的,也是占用内存小响应快,也是存在一样的问题——播放语音就马上闪退
不要再纠结,就是能登录收发信息就可以了

ruhong@localhost:~> su -
密码:
localhost:~ # flatpak install flathub com.tencent.WeChat
Looking for matches…
Required runtime for com.tencent.WeChat/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/23.08) found in remote flathub
Do you want to install it? [Y/n]: Y

com.tencent.WeChat permissions:
ipc network pulseaudio x11 devices
file access [1] dbus access [2] bus ownership [3]

[1] xdg-download
[2] org.freedesktop.FileManager1, org.freedesktop.Notifications, org.kde.StatusNotifierWatcher
[3] org.kde.*


    ID                                          Branch              Op        Remote         Download
  1. [✓] org.freedesktop.Platform.GL.default 23.08 i flathub 164.6 MB / 164.6 MB
  2. [✓] org.freedesktop.Platform.GL.default 23.08-extra i flathub 18.5 MB / 164.6 MB
  3. [✓] org.freedesktop.Platform.Locale 23.08 i flathub 1.7 MB / 360.1 MB
  4. [✓] org.freedesktop.Platform 23.08 i flathub 221.3 MB / 227.3 MB
  5. [/] com.tencent.WeChat stable i flathub 117.1 MB / 117.1 MB

Installing 5/5… ████████████████████ 100% 3.5 MB/s 00:00bsdtar: Failed to set default locale

ID Branch Op Remote Download

  1. [✓] org.freedesktop.Platform.GL.default 23.08 i flathub 164.6 MB / 164.6 MB
  2. [✓] org.freedesktop.Platform.GL.default 23.08-extra i flathub 18.5 MB / 164.6 MB
  3. [✓] org.freedesktop.Platform.Locale 23.08 i flathub 1.7 MB / 360.1 MB
  4. [✓] org.freedesktop.Platform 23.08 i flathub 221.3 MB / 227.3 MB
  5. [✓] com.tencent.WeChat stable i flathub 117.1 MB / 117.1 MB

Installation complete.
localhost:~ #

ruhong@localhost:~> flatpak run com.tencent.WeChat
Gtk-Message: 21:38:54.597: Failed to load module “lunar-calendar-module”
Gtk-Message: 21:38:54.597: Failed to load module “canberra-gtk-module”
Gtk-Message: 21:38:54.717: Failed to load module “canberra-gtk-module”
Gtk-Message: 21:38:54.719: Failed to load module “canberra-gtk-module”
libpng warning: iCCP: known incorrect sRGB profile
fopen64: redirect from /etc/lsb-release to: /app/extra/etc/lsb-release-ukui
fopen64: redirect from /etc/lsb-release to: /app/extra/etc/lsb-release-ukui
dlopen: redirect from /usr/lib/libactivation.so to: /app/extra/wechat/libactivation.so
fopen: redirect from /etc/.kyact to: /app/extra/etc/.kyact

播放语音时报错信息如下
[0426/214222.313159:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
[0426/214222.342811:ERROR:exception_handler_server.cc(53)] EPOLLERR: Connection reset by peer (104)

闪退问题本质是 KDE 的锅。风滚草上已经解决了。kde 上游对音视频这块有个东西做了改动,之前也会导致 Spotify 把 plasma 带崩溃

GNOME 一样闪, 刚刚滚完还是闪

但是这个版本来信息后在状态栏只会一个颜色的闪,老早的那个 electron-wechat 还能分颜色。而且内存再小也比 electron-wechat 大

我的办法是用 VirtualBox 安装一个 Tiny10 虚拟机,性能损耗可以接受

请教你用这个 platpak 版本输入法能正常使用吗?我装了之后输入法无法正常唤出打中文,输入法用的是 fcitx5-rime flatpak 版本

我就用系统自带的输入法,没有另外安装 fcitx5-rime flatpak 版本,无论在什么输入框都能调出五笔输入法,输入中文字
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
在 openSUSE-Leap-15.4-DVD-x86_64 中默认会同时安装 ibus 与 fcitx,ibus 是 openSUSE 简体中文语系默认的输入法。opensuse15.6 也是默认 ibus
应用程序——其它——设置——键盘——输入源下方的加号图标——单击下方的三个点图标——汉语(中国)——中文(极点五…词库 6.0)——添加——将极点五笔拖到最上方,删除其它输入法,只保留极点五笔和智能拼音,需要重启台式机
单击 Shift 键——切换中文与英文输入法
Shift 键+空格键——切换全角与半角
super 键+空格键——切换极点五笔和智能拼音
super 键是带有 windows 标识的按键,在键盘左下角 Ctrl 和 Alt 键之间的按键
==================================================================
在 openSUSE-Leap-15.5-DVD-x86_64 中默认会同时安装 ibus 与 fcitx,fcitx 是 openSUSE 简体中文语系默认的输入法。
应用程序——系统工具——fcitx 配置——输入法——按照以下顺序保留三个输入法,移除其它输入法
键盘—汉语 未知
五笔字型 汉语(中国)
双拼(LibPinyin)汉语(中国)

开机默认为英文输入法(第一项),Ctrl+ 空格键开启五笔输入法(第二项),再使用 Ctrl+Shift 切换到拼音输入法(第三项)
而在 opensuse15.5 设置 ibus 输入法的
应用程序——其它——设置——键盘——输入源——是不会改变系统默认输入法的

感谢,我找到解决方法了,微信是需要找 QT_IM_MODULE=fcitx 这个环境变量才能找到 fcitx5 输入法,但是在系统中设置 QT_IM_MODULE=fcitx 这个输入法后 wayland 会报错,因此我现在是在终端中使用 QT_IM_MODULE=fcitx wechat-beta 来启动微信。

https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland
参考官方 wiki,在 KDE 下使用环境变量 XMODIFIERS=@im=fcitx,并且禁用 GTK_IM_MODULE & QT_IM_MODULE & SDL_IM_MODULE。
flatpak 有自己的环境变量,可以通过命令 sudo flatpak override --env=XMODIFIERS=@im=fcitx 全局设置。
凭印象打的,大概这个意思

这位翻车了哦

微信 4.0 已经更新了,包名还是 wechat-beta,如果安装 wechat 会要求依赖 wechat-beta 防止后期包迁移

1赞

腾讯企业官网提供的 wechat-4.0.0.30-1.x86_64 安装之后运行是这样的结果:
ruhong@localhost:~> wechat
非法指令 (核心已转储)

最后还是要使用 wechat-beta-1.0.0-lp156.21477.1.x86_64 才能正常登录微信

现在通过软件商店中的 flatpak 安装最新版 4.0 非常方便,也很好用。

使用 Firefox 浏览器打开 Set Up Flathub | Flathub 单击 openSUSE
https://flathub.org/setup/openSUSE
localhost:~ # zypper install flatpak
localhost:~ # flatpak --help
localhost:~ # flatpak remotes --show-details

localhost:~ # flatpak remote-modify flathub --url=https://mirror.sjtu.edu.cn/flathub
localhost:~ # flatpak remotes --show-details

localhost:~ # flatpak list
Name Application ID Version Branch Installation
Mesa org.freedesktop.Platform.GL.default 24.1.3 23.08 system
Mesa (Extra) org.freedesktop.Platform.GL.default 24.1.3 23.08-extra system
openh264 org.freedesktop.Platform.openh264 2.1.0 2.2.0 system
GNOME Application Platform version 45 org.gnome.Platform 45 system
Pitivi org.pitivi.Pitivi 2023.03 stable system
Codecs org.pitivi.Pitivi.Codecs stable system
localhost:~ # flatpak search wechat
Name Description Application ID Version Branch Remotes
WeChat Free messaging and calling app com.tencent.WeChat 4.0.0.30 stable flathub
Franz Messenger for the desktop com.meetfranz.Franz 5.10.0 stable flathub
localhost:~ # flatpak install flathub com.tencent.WeChat
Looking for matches…
Required runtime for com.tencent.WeChat/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/24.08) found in remote flathub
Do you want to install it? [Y/n]: Y

com.tencent.WeChat permissions:
ipc network pulseaudio x11 devices
file access [1] dbus access [2] bus ownership [3]

[1] xdg-download:ro
[2] org.freedesktop.FileManager1, org.freedesktop.Notifications, org.kde.StatusNotifierWatcher
[3] org.kde.*


    ID                                          Branch             Op         Remote         Download
  1. [✓] org.freedesktop.Platform.GL.default 24.08 i flathub 146.5 MB / 146.8 MB
    ID Branch Op Remote Download
  2. [✓] org.freedesktop.Platform.GL.default 24.08 i flathub 146.5 MB / 146.8 MB
  3. [✓] org.freedesktop.Platform.GL.default 24.08extra i flathub 22.7 MB / 146.8 MB
  4. [✓] org.freedesktop.Platform.Locale 24.08 i flathub 1.8 MB / 379.7 MB
  5. [✓] org.freedesktop.Platform.openh264 2.4.1 i flathub 920.7 kB / 976.5 kB
  6. [✓] org.freedesktop.Platform 24.08 i flathub 184.7 MB / 261.5 MB
  7. [✓] com.tencent.WeChat stable i flathub 206.0 MB / 206.1 MB

Installation complete.
localhost:~ # flatpak list
Name Application ID Version Branch Installation
WeChat com.tencent.WeChat 4.0.0.30 stable system
Freedesktop Platform org.freedesktop.Platform freedesktop-sdk-24.08.7 24.08 system
Mesa …g.freedesktop.Platform.GL.default 24.1.3 23.08 system
Mesa (Extra) …g.freedesktop.Platform.GL.default 24.1.3 23.08-extra system
Mesa …g.freedesktop.Platform.GL.default 24.2.7 24.08 system
Mesa (Extra) …g.freedesktop.Platform.GL.default 24.2.7 24.08extra system
openh264 org.freedesktop.Platform.openh264 2.1.0 2.2.0 system
openh264 org.freedesktop.Platform.openh264 2.4.1 2.4.1 system
GNOME Application Platform versi… org.gnome.Platform 45 system
Pitivi org.pitivi.Pitivi 2023.03 stable system
Codecs org.pitivi.Pitivi.Codecs stable system
localhost:~ #

大约耗时 20 分钟,必须要以普通用户运行微信
ruhong@localhost:~> flatpak run com.tencent.WeChat

没有任何反应,也没有出错提示,安装确实是很方便,但 “也很好用” 就是骗人的,腾讯在卖假药(假软件)减少群众的骂声

localhost:~ # flatpak remove com.tencent.WeChat
ID Branch Op

  1. [-] com.tencent.WeChat stable r

Uninstall complete.

错误:Unable to open ‘./coredump’: 没有那个文件或目录

可以用一下 Flatpak 版本的微信 那个体验还是不错的

大佬知道 Discover 怎么添加 Flatpak 源吗

/app/extra/wechat/wechat: error while loading shared libraries: libandromeda.so: cannot enable executable stack as shared object requires: Permission denied
大佬请教下,从 flatpak 安装的打不开,提示这个知道怎么解决吗

谢谢大佬,之前用 flatpak 下载的找不到目录,后面用 opi 按照这个方法可以了