Skip to content

Commit

Permalink
Merge pull request #13 from pkgforge-dev/fix-broken-language
Browse files Browse the repository at this point in the history
fix error when switching languages
  • Loading branch information
Samueru-sama authored Jan 15, 2025
2 parents 2ecc134 + 024c2d3 commit e966e57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/Dolphin_sharun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
pacman-key --init && pacman-key --populate archlinux
printf "\n[extra]\nInclude = /etc/pacman.d/mirrorlist-arch\n" | tee -a /etc/pacman.conf
cat /etc/pacman.conf
sudo sed -i 's/NoExtract/#NoExtract/g' /etc/pacman.conf
pacman -Syu --noconfirm zsync \
dolphin-emu \
pulseaudio \
Expand Down
9 changes: 7 additions & 2 deletions dolphin-emu-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ chmod +x ./lib4bin

xvfb-run -a -- ./lib4bin -p -v -r -e -s -k /usr/bin/dolphin-*

# for some reason the dir needs a capital S?
# when compiled portable this directory needs a capital S
# this is not needed since we are not using a binary that was compiled portable
cp -r /usr/share/dolphin-emu/sys ./bin/Sys

# Deploy Qt manually xd
Expand Down Expand Up @@ -79,9 +80,13 @@ git clone https://github.com/fritzw/ld-preload-open.git preload.tmp
( cd preload.tmp && make all && mv ./path-mapping.so ../ )
rm -rf ./preload.tmp

echo 'PATH_MAPPING="/usr/share/dolphin-emu/sys:${SHARUN_DIR}/bin/Sys"
echo 'PATH_MAPPING="/usr/share/dolphin-emu/sys:${SHARUN_DIR}/bin/Sys:/usr/share/dolphin-emu//../locale:${SHARUN_DIR}/share/locale"
LD_PRELOAD=${SHARUN_DIR}/path-mapping.so' > ./.env

# copy locales, for some reason the dolphin binary tries to look into an invalid /usr/share/dolphin-emu//../locale path
cp -r /usr/share/locale ./share
find ./share/locale -type f ! -name '*dolphin*' -delete

# Prepare sharun
ln ./sharun ./AppRun
./sharun -g
Expand Down

0 comments on commit e966e57

Please sign in to comment.