-static inline bool
-tools_setup_path(void)
-{
- const char *path = getenv("PATH");
- const char *extra_path = LIBXKBCOMMON_TOOL_PATH;
- char new_path[PATH_MAX];
-
- if (snprintf_safe(new_path, sizeof(new_path), "%s:%s",
- extra_path, path ? path : "")) {
- setenv("PATH", new_path, 1);
- return true;
- } else {
- return false;
- }
-}
-