aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorNicolas Braud-Santoni <nicolas@braud-santoni.eu>2018-05-01 16:49:15 +0200
committerNicolas Braud-Santoni <nicolas@braud-santoni.eu>2018-05-05 17:22:46 +0200
commit1670b46bf6e56d37e69ab0fa32c6799e83397020 (patch)
tree28f4420e4658765f8f6693ff9bda32468962f7d2 /sway/commands
parent7709340727fe2834f87b43aeeaef878694d5acd6 (diff)
Make the LIBDIR path configurable
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/exec_always.c4
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) {
if ((*child = fork()) == 0) {
// Acquire the current PATH
char *path = getenv("PATH");
- const char *extra_path = ":/usr/lib/sway";
- const size_t extra_size = sizeof("/usr/lib/sway") + 1;
+ const char *extra_path = ":" INSTLIBDIR;
+ const size_t extra_size = sizeof(INSTLIBDIR) + 1;
if (!path) {
size_t n = confstr(_CS_PATH, NULL, 0);