diff options
author | 2018-05-01 16:49:15 +0200 | |
---|---|---|
committer | 2018-05-05 17:22:46 +0200 | |
commit | 1670b46bf6e56d37e69ab0fa32c6799e83397020 (patch) | |
tree | 28f4420e4658765f8f6693ff9bda32468962f7d2 /sway | |
parent | exec_always: Search for executables in /usr/lib/sway (diff) | |
download | sway-1670b46bf6e56d37e69ab0fa32c6799e83397020.tar.gz sway-1670b46bf6e56d37e69ab0fa32c6799e83397020.tar.zst sway-1670b46bf6e56d37e69ab0fa32c6799e83397020.zip |
Make the LIBDIR path configurable
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands/exec_always.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c index af4bd739..3f3a7940 100644 --- a/sway/commands/exec_always.c +++ b/sway/commands/exec_always.c | |||
@@ -55,8 +55,8 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) { | |||
55 | if ((*child = fork()) == 0) { | 55 | if ((*child = fork()) == 0) { |
56 | // Acquire the current PATH | 56 | // Acquire the current PATH |
57 | char *path = getenv("PATH"); | 57 | char *path = getenv("PATH"); |
58 | const char *extra_path = ":/usr/lib/sway"; | 58 | const char *extra_path = ":" INSTLIBDIR; |
59 | const size_t extra_size = sizeof("/usr/lib/sway") + 1; | 59 | const size_t extra_size = sizeof(INSTLIBDIR) + 1; |
60 | 60 | ||
61 | if (!path) { | 61 | if (!path) { |
62 | size_t n = confstr(_CS_PATH, NULL, 0); | 62 | size_t n = confstr(_CS_PATH, NULL, 0); |