summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/43-adjust_path_to_ibus-unikey_binaries
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/43-adjust_path_to_ibus-unikey_binaries')
-rwxr-xr-xconfig/chroot_local-hooks/43-adjust_path_to_ibus-unikey_binaries18
1 files changed, 18 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/43-adjust_path_to_ibus-unikey_binaries b/config/chroot_local-hooks/43-adjust_path_to_ibus-unikey_binaries
new file mode 100755
index 0000000..d690708
--- /dev/null
+++ b/config/chroot_local-hooks/43-adjust_path_to_ibus-unikey_binaries
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+echo "Moving IBus Unikey binaries to /usr/lib/ibus/"
+
+# Workaround Debian bug #714932 -- we can't just dpkg-divert it, since
+# the original path is hardcoded in these binaries.
+for infix in engine setup ; do
+ orig="/usr/lib/ibus-unikey/ibus-$infix-unikey"
+ dest="/usr/lib/ibus/ibus-$infix-unikey"
+ ln -s "$orig" "$dest"
+done
+
+# Adjust path to the binary in unikey.xml
+sed -i -e \
+ 's,/usr/lib/ibus-unikey/ibus-engine-unikey,/usr/lib/ibus/ibus-engine-unikey,' \
+ /usr/share/ibus/component/unikey.xml