net-im/tencent-qq: bump version to 3.2.15_p241224
[gentoo-zh.git] / net-im / wemeet / files / wemeetapp-1.sh
blobe55618e5f8ca595c5b5d67910a3a0dbd27f1af16
1 #!/bin/sh
2 export XDG_SESSION_TYPE=x11
3 export QT_QPA_PLATFORM=xcb
4 export QT_AUTO_SCREEN_SCALE_FACTOR=1
5 export QT_STYLE_OVERRIDE=fusion # 解决使用自带qt情况下,字体颜色全白看不到的问题
6 export IBUS_USE_PORTAL=1 # fix ibus
7 FONTCONFIG_DIR=$HOME/.config/fontconfig
8 unset WAYLAND_DISPLAY
10 # 解决非zh或en的语言设置闪退的问题
11 # if "^zh" is not detected in $LANG $LC_ALL $LANGUAGE, set language to en_GB, else zh_CN
12 if test "${LANG:0:2}" != "zh" -a "${LC_ALL:0:2}" != "zh" -a "${LANGUAGE:0:2}" != "zh"; then
13 export LC_ALL="en_US.UTF-8"
14 else
15 export LC_ALL="zh_CN.UTF-8"
18 # if pipewire-pulse installed
19 if [ -f /usr/bin/pipewire-pulse ]; then
20 export PULSE_LATENCY_MSEC=20 # 解决Pipewire播放声音卡顿的问题
21 fi;
23 if [ -f "/usr/bin/bwrap" ];then
24 mkdir -p $FONTCONFIG_DIR
25 bwrap --dev-bind / / --tmpfs $HOME/.config --ro-bind $FONTCONFIG_DIR $FONTCONFIG_DIR /opt/wemeet/bin/wemeetapp $*;
26 else
27 exec /opt/wemeet/bin/wemeetapp $*;
28 fi;