Skip to content

Instantly share code, notes, and snippets.

@Bubbu0129
Last active May 20, 2026 08:00
Show Gist options
  • Select an option

  • Save Bubbu0129/081d52810020b4cd58a5245ae4d50b34 to your computer and use it in GitHub Desktop.

Select an option

Save Bubbu0129/081d52810020b4cd58a5245ae4d50b34 to your computer and use it in GitHub Desktop.

Wechat for Linux tips and tricks

The tweaks in this snippit applies to Wechat for Linux.

Theming

Apply light/dark theme (based on KDE color scheme).

WeChat stores general configuration files under ~/.local/share/xwechat_files/all_users/config/, at global_config. However, the file is encrypted, along with checksum global_config.crc.

One way around this is to save two copies of global_config and global_config.crc of light and dark theme. This can be done by adjusting the appearance setting in WeChat, exiting and backing-up the two files.

Disabling bloats

Most Wechat bloats are stored under /opt/wechat. The files/directories sorted by size are as follows (as of version 4.1.1)

$ du -ah --max-depth=1 /opt/wechat/ 2>/dev/null | sort -hr
717M    /opt/wechat/
329M    /opt/wechat/RadiumWMPF
135M    /opt/wechat/wechat
45M     /opt/wechat/XFile
32M     /opt/wechat/libvoipCodec.so
29M     /opt/wechat/libWxVcodec2Dyn.so
28M     /opt/wechat/ocr_model
26M     /opt/wechat/wxocr
25M     /opt/wechat/XEditor
18M     /opt/wechat/libwxtrans.so
9.7M    /opt/wechat/vlc_plugins
9.5M    /opt/wechat/libilink_network.so
7.7M    /opt/wechat/libroam_migration.so
5.6M    /opt/wechat/libandromeda.so
5.4M    /opt/wechat/libconfService.so
4.1M    /opt/wechat/crashpad_handler
2.0M    /opt/wechat/libmmmojo.so
1.9M    /opt/wechat/libvoipChannel.so
1.6M    /opt/wechat/libilink2.so
1.3M    /opt/wechat/libvlccore.so.9.0.1
1.2M    /opt/wechat/libowl.so
956K    /opt/wechat/wxplayer
936K    /opt/wechat/wxutility
936K    /opt/wechat/libcrashpad_client.so
472K    /opt/wechat/libWxH264.so
220K    /opt/wechat/libvoipComm.so
184K    /opt/wechat/libilink_protobuf.so
152K    /opt/wechat/libvlc.so.5.6.1
4.0K    /opt/wechat/libvlc.so.5
4.0K    /opt/wechat/libvlc.so
4.0K    /opt/wechat/libvlccore.so.9
4.0K    /opt/wechat/libvlccore.so

RadiumWMPF is by far the largest, which refers to the WeChat Mini Program Framework; wechat is the main binary file; XFile provides previews to sent/received files.

Removing RadiumWMPF disables mini programs, including the "internet search" function.

Removing XFile will result in sent/received files being opened by default applications.

The two directories take up more than half the size of /opt/wechat.

KDE_COLOR_SCHEME=$(kreadconfig6 --group General --key ColorScheme)
cd ~/.local/share/xwechat_files/all_users/config/
if [[ "$KDE_COLOR_SCHEME" == *"Dark"* ]]; then
cp dark.crc global_config.crc
cp dark global_config
else
cp light.crc global_config.crc
cp light global_config
fi
exec wechat "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment