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:
Marius Vlad
2018-12-15 15:51:57 +02:00
parent 6bc37259e6
commit 64fbd0f41f
6 changed files with 23 additions and 8 deletions
+1 -1
View File
@@ -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;