mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Fix #7982
This commit is contained in:
7
glfw/ibus_glfw.c
vendored
7
glfw/ibus_glfw.c
vendored
@@ -325,7 +325,12 @@ get_ibus_address_file_name(void) {
|
||||
}
|
||||
offset = snprintf(ans, sizeof(ans), "%s/.config", conf_env);
|
||||
}
|
||||
char *key = dbus_get_local_machine_id();
|
||||
DBusError err;
|
||||
char *key = dbus_try_get_local_machine_id(&err);
|
||||
if (!key) {
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR, "Cannot connect to IBUS as could not get DBUS local machine id with error %s: %s", err.name ? err.name : "", err.message ? err.message : "");
|
||||
return NULL;
|
||||
}
|
||||
snprintf(ans + offset, sizeof(ans) - offset, "/ibus/bus/%s-%s-%s", key, host, disp_num);
|
||||
dbus_free(key);
|
||||
return ans;
|
||||
|
||||
Reference in New Issue
Block a user