app-editors/zed: add 0.144.3, drop 0.143.7
[gentoo-zh.git] / net-im / wemeet / files / wemeetapp-1.sh
blob73f7fab8e67c6fdd9270e7fb8e61528b1501da1f
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 # if pipewire-pulse installed
11 if [ -f /usr/bin/pipewire-pulse ]; then
12 export PULSE_LATENCY_MSEC=20 # 解决Pipewire播放声音卡顿的问题
13 fi;
15 if [ -f "/usr/bin/bwrap" ];then
16 mkdir -p $FONTCONFIG_DIR
17 bwrap --dev-bind / / --tmpfs $HOME/.config --ro-bind $FONTCONFIG_DIR $FONTCONFIG_DIR /opt/wemeet/bin/wemeetapp $*;
18 else
19 exec /opt/wemeet/bin/wemeetapp $*;
20 fi;