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",
&error)) {