Skip to content

Instantly share code, notes, and snippets.

@atsuya
Last active October 1, 2018 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atsuya/7bb15fa31f139382044125c21bb4c762 to your computer and use it in GitHub Desktop.
Save atsuya/7bb15fa31f139382044125c21bb4c762 to your computer and use it in GitHub Desktop.
always turn on mozc with ibus

A workaround to activate Hiragana mode when switched to mozc using ibus

always being activated

sed -i -e 's/^const bool kActivatedOnLaunch = false/const bool kActivatedOnLaunch = true/g' src/unix/ibus/property_handler.cc

this is a snippet inserted into PKGBUILD and in the end of prepare()

sed -i -e 's/^const bool kActivatedOnLaunch = false/const bool kActivatedOnLaunch = true/g' ${srcdir}/${pkgbase}/src/unix/ibus/property_handler.cc

# Adjust to use python2
  find . -name  \*.py        -type f -exec sed -i -e "1s|python.*$|python2|"  {} +
  find . -regex '.*\.gypi?$' -type f -exec sed -i -e "s|'python'|'python2'|g" {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment