Created
July 17, 2016 05:47
-
-
Save EsanLe/00eadc26cc7cf8adaa52a55b0d92533a to your computer and use it in GitHub Desktop.
Fix genymontion 2.7.2 crash in AUR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Extract pango package | |
cd /tmp | |
rm -rf pango-1.36.8-1-x86_64.pkg.tar.xz | |
wget https://archive.archlinux.org/packages/p/pango/pango-1.36.8-1-x86_64.pkg.tar.xz | |
mkdir pango | |
tar -xJf pango-1.36.8-1-x86_64.pkg.tar.xz -C ./pango | |
# Copy pango lib | |
cp -rf /tmp/pango/usr/lib/libpangoft2-1.0.so* /opt/genymotion/ | |
# Clean useless files | |
rm -rf /tmp/pango | |
rm -rf /tmp/pango-1.36.8-1-x86_64.pkg.tar.xz | |
# Fix the crash due to fcitx by set env | |
cd /opt/genymotion/ | |
patched=$(file genymotion | grep ELF) | |
if $patched ; then | |
echo "genymotion Already patched" | |
else | |
mv genymotion genymotion.bin | |
echo $'#!/bin/sh\nexport GTK_IM_MODULE=xim\nexport QT_IM_MODULE=xim\n/opt/genymotion/genymotion.bin' > genymotion | |
chmod +x genymotion | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks !