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
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"
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播放声音卡顿的问题
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 $
*;
27 exec /opt
/wemeet
/bin
/wemeetapp $
*;