Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@tvdstaaij 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

This comment has been minimized.

Copy link

@pastleo 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