summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/43-adjust_path_to_ibus-unikey_binaries
blob: d690708999023f1f20fc0978036b7b73d58bc13a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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