diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-09-22 01:12:33 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-09-22 01:14:20 +0200 |
commit | 884c1416b302e9d855453d8e83cc09e54796a434 (patch) | |
tree | aeee0f56dff75586588ecb67d2ce34305714e244 /libseat/backend | |
parent | a763e16f26529323cd23a84a53f8d03431133d91 (diff) |
meson: Make default seatd socket path configurable
FreeBSD and Linux have different preferred socket locations. Expose an
option to set the location, and implement simple auto-logic for
linux/freebsd.
Diffstat (limited to 'libseat/backend')
-rw-r--r-- | libseat/backend/seatd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index b0e023f..1259308 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -67,9 +67,9 @@ static int seatd_connect(void) { close(fd); return -1; } - char *path = getenv("SEATD_SOCK"); + const char *path = getenv("SEATD_SOCK"); if (path == NULL) { - path = "/run/seatd.sock"; + path = SEATD_DEFAULTPATH; } addr.unix.sun_family = AF_UNIX; strncpy(addr.unix.sun_path, path, sizeof addr.unix.sun_path); |