Skip to content

Instantly share code, notes, and snippets.

@tvdstaaij
Created September 2, 2016 14:23
Show Gist options
  • Save tvdstaaij/a25bb1bd132eebea9b4d04f06be802ee to your computer and use it in GitHub Desktop.
Save tvdstaaij/a25bb1bd132eebea9b4d04f06be802ee to your computer and use it in GitHub Desktop.
Arch Linux ibus-mozc-ut patch for kana as default input mode
patch#pkgbuild#PKGBUILD.patch
--- PKGBUILD.orig 2016-09-02 14:28:07.722064884 +0200
+++ PKGBUILD.new 2016-09-02 14:30:38.228733627 +0200
@@ -138,6 +138,9 @@
cd "${srcdir}/mozc/"
+ # https://github.com/google/mozc/issues/381#issuecomment-242965044
+ sed -i 's/const bool kActivatedOnLaunch = false/const bool kActivatedOnLaunch = true/' src/unix/ibus/property_handler.cc
+
git submodule update --init --recursive
# Generate zip code seed
@tvdstaaij
Copy link
Author

tvdstaaij commented Sep 2, 2016

  1. Make sure you have customizepkg installed
  2. Put mozc-ut in /etc/customizepkg.d, put PKGBUILD.patch in /etc/customizepkg.d/mozc-ut.files`
  3. Build and install the mozc-ut package (NOT ibus-mozc-ut; ibus will be included) with e.g. yaourt

A similar patch should work for the non-ut version of mozc.

@pastleo
Copy link

pastleo commented Feb 13, 2018

looks like package name is renamed to mozc-ut2? I put mozc-ut as etc/customizepkg.d/mozc-ut2, PKGBUILD.patch as /etc/customizepkg.d/mozc-ut2.files/PKGBUILD.patch

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