summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKimiblock Moe2024-05-01 16:22:05 +0800
committerKimiblock Moe2024-05-01 16:22:05 +0800
commitb6f9f3ef0474e31765206994f847094951d64be0 (patch)
tree758b16ddc1311af86ed5091c4e7b6c6a0a1f77f0
parentcb005aa5a3aa0a0ea722e7c748f3c9cd8a03482c (diff)
downloadaur-b6f9f3ef0474e31765206994f847094951d64be0.tar.gz
Fix resolved
-rw-r--r--wechat.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/wechat.sh b/wechat.sh
index f88cf17a0eaf..481d9079e9b4 100644
--- a/wechat.sh
+++ b/wechat.sh
@@ -156,6 +156,8 @@ function execApp() {
"${XDG_RUNTIME_DIR}/.flatpak-info" \
--ro-bind-try "${XDG_DATA_HOME}"/WeChat_Data/.flatpak-info \
/.flatpak-info \
+ --ro-bind-try /run/systemd/resolve/stub-resolv.conf \
+ /run/systemd/resolve/stub-resolv.conf \
--dir "${XDG_DOCUMENTS_DIR}" \
${bwCamPar} \
--setenv QT_QPA_PLATFORM xcb \
@@ -244,11 +246,15 @@ function launch() {
inputMethod
moeDect
#lnDir
- if [[ $@ =~ "debug-shell" ]] && [[ $@ =~ "--actions" ]]; then
+ if [[ $@ =~ "--actions" ]] && [[ $@ =~ "debug-shell" ]]; then
launchTarget="bash"
else
launchTarget="/opt/wechat-uos-qt/files/wechat"
fi
+ if [[ $@ =~ "--actions" ]] && [[ $@ =~ "gamescope" ]]; then
+ export QT_SCREEN_SCALE_FACTOR=2
+ launchTarget="gamescope -m 1 --mangoapp -- /opt/wechat-uos-qt/files/wechat"
+ fi
if [[ ${trashAppUnsafe} = 1 ]]; then
echo "Launching WeChat UOS (unsafe)..."
execAppUnsafe