phuang/ibus — pull request #6 by falconindy (2012-07-02 14:33:24+00:00)
Title: Try harder to find a valid machine-id

Refactor the logic in ibus_get_local_machine_id() to try harder to find a valid machine-id. Since the stable release of dbus 1.6.0, /etc/machine-id is also a valid location for this file. If the user's system is still not configured properly, fallback on a valid boot-id, taken from the kernel. This avoids assigning an invalid (non-hex) machine-id which may cause ibus frontends to not work properly.

For reference, this happens on Arch Linux. We have our own bug to cleanup, but since ibus does not link to dbus to call dbus_get_local_machine_id(), it should at least follow similar heuristics.

ref: https://bugs.archlinux.org/task/30510