43-adjust_path_to_ibus-unikey_binaries 530 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. echo "Moving IBus Unikey binaries to /usr/lib/ibus/"
  4. # Workaround Debian bug #714932 -- we can't just dpkg-divert it, since
  5. # the original path is hardcoded in these binaries.
  6. for infix in engine setup ; do
  7. orig="/usr/lib/ibus-unikey/ibus-$infix-unikey"
  8. dest="/usr/lib/ibus/ibus-$infix-unikey"
  9. ln -s "$orig" "$dest"
  10. done
  11. # Adjust path to the binary in unikey.xml
  12. sed -i -e \
  13. 's,/usr/lib/ibus-unikey/ibus-engine-unikey,/usr/lib/ibus/ibus-engine-unikey,' \
  14. /usr/share/ibus/component/unikey.xml