summarylogtreecommitdiffstats
path: root/start.sh
diff options
context:
space:
mode:
authorYidaozhan Ya2022-12-29 19:49:01 +0800
committerYidaozhan Ya2022-12-29 19:49:01 +0800
commit093db73bd7bef70a767334b060bc3a25716fc798 (patch)
tree0ba8ca0142f343d1f4cf40418ec26e6bdf81e222 /start.sh
parent99f65cb491fca25169a80ff955e5d05ee6c9219c (diff)
downloadaur-093db73bd7bef70a767334b060bc3a25716fc798.tar.gz
[fix] 修复了错误地挂载整个主目录的问题。
Diffstat (limited to 'start.sh')
-rwxr-xr-xstart.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/start.sh b/start.sh
index b077bdaabb74..48a156308f81 100755
--- a/start.sh
+++ b/start.sh
@@ -10,7 +10,7 @@ QQ_HOTUPDATE_DIR="${QQ_APP_DIR}/versions"
QQ_HOTUPDATE_VERSION="3.0.0-565"
QQ_PREVIOUS_VERSIONS=("2.0.1-429" "2.0.1-453" "2.0.2-510" "2.0.3-543")
-if [ "${DOWNLOAD_DIR}" == "${HOME}" ]; then
+if [ "${DOWNLOAD_DIR%*/}" == "${HOME}" ]; then
DOWNLOAD_DIR="${HOME}/Downloads"
if [ ! -e "${DOWNLOAD_DIR}" ]; then mkdir -p "${DOWNLOAD_DIR}"; fi
fi
@@ -54,6 +54,7 @@ bwrap --new-session --die-with-parent --cap-drop ALL --unshare-user-try --unshar
--ro-bind-try "${XAUTHORITY}" "${XAUTHORITY}" \
--bind-try "${DOWNLOAD_DIR}" "${DOWNLOAD_DIR}" \
--bind "${QQ_APP_DIR}" "${QQ_APP_DIR}" \
+ --symlink opt/QQ/workarounds/qq_channel_jsbridge_handler.desktop "$HOME/.local/share/applications/qq_channel_jsbridge_handler.desktop" \
--setenv IBUS_USE_PORTAL 1 \
--setenv DISPLAY "${NEW_DISPLAY}" \
/opt/QQ/qq "$@"