You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-full-overlay/app-i18n/ibus/files/ibus-1.4.0-machine-id-fallb...

20 lines
750 B

http://cgit.freedesktop.org/dbus/dbus/commit/dbus/dbus-sysdeps-unix.c?id=66e52541d5bdd4927a5c702963749760643313f4
http://bugs.gentoo.org/390463
--- src/ibusshare.c
+++ src/ibusshare.c
@@ -41,7 +41,11 @@ ibus_get_local_machine_id (void)
if (machine_id == NULL) {
GError *error = NULL;
- if (!g_file_get_contents ("/var/lib/dbus/machine-id",
+ if (!g_file_get_contents ("/etc/machine-id",
+ &machine_id,
+ NULL,
+ NULL) &&
+ !g_file_get_contents ("/var/lib/dbus/machine-id",
&machine_id,
NULL,
&error)) {