compositor: Add some handy wrappers for wet_get_binary_path()
This allows to possibility to specify where to look for the executable but also simplifies the need of having to pass either BINDIR/LIBEXECDIR for retrieving full-path of the executable. Signed-off-by: Marius Vlad <marius.vlad0@gmail.com>
This commit is contained in:
@@ -468,7 +468,7 @@ shell_configuration(struct desktop_shell *shell)
|
||||
|
||||
section = weston_config_get_section(wet_get_config(shell->compositor),
|
||||
"shell", NULL, NULL);
|
||||
client = wet_get_binary_path(WESTON_SHELL_CLIENT);
|
||||
client = wet_get_libexec_path(WESTON_SHELL_CLIENT);
|
||||
weston_config_section_get_string(section, "client", &s, client);
|
||||
free(client);
|
||||
shell->client = s;
|
||||
|
||||
Reference in New Issue
Block a user