Skip to content

Instantly share code, notes, and snippets.

@EsanLe
Created July 17, 2016 05:47
Show Gist options
  • Save EsanLe/00eadc26cc7cf8adaa52a55b0d92533a to your computer and use it in GitHub Desktop.
Save EsanLe/00eadc26cc7cf8adaa52a55b0d92533a to your computer and use it in GitHub Desktop.
Fix genymontion 2.7.2 crash in AUR
#!/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
@Geequlim
Copy link

Geequlim commented Sep 2, 2016

It works thanks!

@AdrienLemaire
Copy link

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment