Meson: Replace option instlibdir with libexecdir

Derive a value from it, called `rundir` rather than writing join_paths(libexecdir,
'sway') all over the place.
This commit is contained in:
Nicolas Braud-Santoni 2018-05-01 20:47:55 +02:00
parent 1670b46bf6
commit 830c4ef74c
5 changed files with 9 additions and 9 deletions

View file

@ -55,8 +55,8 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
if ((*child = fork()) == 0) {
// Acquire the current PATH
char *path = getenv("PATH");
const char *extra_path = ":" INSTLIBDIR;
const size_t extra_size = sizeof(INSTLIBDIR) + 1;
const char *extra_path = ":" SWAY_LIBEXECDIR;
const size_t extra_size = sizeof(SWAY_LIBEXECDIR) + 1;
if (!path) {
size_t n = confstr(_CS_PATH, NULL, 0);