blob: 196a48894c9108b421f84d8230fcdd35f0cf9b78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/bash
if [ -f /usr/lib/wechat/alt.desktop ]; then
install -Dm644 \
/usr/lib/wechat/alt.desktop \
~/.local/share/applications/com.qq.weixin.desktop
fi
if [ -f /usr/bin/portable ] && [ ! -f /usr/lib/wechat/portable-config ]; then # Keep this for users prior to the merge
echo "You'll need to install wechat-bwrap for sandboxing to work!"
notify-send "You'll need to install wechat-bwrap for sandboxing to work!"
zenity --error --title "Sandbox non-functional" --icon=security-low-symbolic --text "Please install aur/wechat-bwrap"
fi
if [ -f /usr/bin/wechat-sandbox-provider ]; then
/usr/bin/wechat-sandbox-provider "$@"
else
/opt/apps/com.tencent.wechat/files/wechat $@
fi
|