Dump env instead of starting daemons via fork

This commit is contained in:
Alex D. 2024-12-09 07:59:09 +00:00
parent c6dd00ff9a
commit 338b1fd62c
Signed by: caskd
GPG Key ID: F92BA85F61F4C173

View File

@ -135,15 +135,10 @@ static const char *audiomixercmd[] = TERMWRAP("pulsemixer");
static const char *passmancmd[] = SHWRAP("~/Sources/Scripts/bemenu/passman/script.zsh");
/* Autostart */
// NOTE: While this is a ugly hack, unfortunately it is not yet possible to pass the desired IPC socket path + WAYLAND_DISPLAY as a parameter, but it would be highly appreciated
// Once associating/grouping services by a well-known path is easily possible without passing env via alternative ways, this should go away
// Note: This is intended to store the env under /run/user/$UID/session-0/ for the user tree to use in starting other services that are independently supervised
static const char *const autostart[] = {
"waybar", NULL,
"kanshi", NULL,
"swayidle", "-w",
"timeout", "300", LOCKER,
"timeout", "600", "swaymsg \"output * power off\"",
"resume", "swaymsg \"output * power on\"", NULL,
"importas", "SESSION_ENV", "SESSION_ENV",
"s6-dumpenv", "${SESSION_ENV}/", NULL,
NULL /* terminate */
};