Skip to content

Commit

Permalink
net-im/wechat-universal-bwrap: Fix that link libraries such as libili…
Browse files Browse the repository at this point in the history
…nk_network.so cannot be loaded
  • Loading branch information
haowuge authored and liangyongxiang committed May 12, 2024
1 parent 770ea44 commit 52126d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
diff --git a/wechat-universal.sh b/wechat-universal.sh
index 186c6b0..5e4f3f9 100644
index 186c6b0..8b47ed0 100644
--- a/wechat-universal.sh
+++ b/wechat-universal.sh
@@ -80,11 +80,11 @@ BWRAP_ARGS=(
@@ -34,6 +34,7 @@ BWRAP_ENV_APPEND=()
env_add QT_QPA_PLATFORM xcb
env_add QT_AUTO_SCREEN_SCALE_FACTOR 1
env_add PATH "/sandbox:${PATH}"
+env_add LD_LIBRARY_PATH "$LD_LIBRARY_PATH:/opt/wechat-universal/RadiumWMPF/runtime"

case "${XMODIFIERS}" in
*@im=fcitx*)
@@ -80,11 +81,11 @@ BWRAP_ARGS=(

# /usr
--ro-bind /usr{,}
Expand All @@ -19,7 +27,7 @@ index 186c6b0..5e4f3f9 100644

# /sandbox
--ro-bind /{usr/lib/flatpak-xdg-utils,sandbox}/xdg-open
@@ -99,12 +99,15 @@ BWRAP_ARGS=(
@@ -99,12 +100,15 @@ BWRAP_ARGS=(
--proc /proc

# /etc
Expand All @@ -36,7 +44,7 @@ index 186c6b0..5e4f3f9 100644

# /sys
--dir /sys/dev # hack for Intel / AMD graphics, mesa calling virtual nodes needs /sys/dev being 0755
@@ -134,11 +137,11 @@ BWRAP_ARGS=(
@@ -134,13 +138,13 @@ BWRAP_ARGS=(
--ro-bind-try "${HOME}/.local/share/.icons"{,}

# /run
Expand Down

0 comments on commit 52126d5

Please sign in to comment.