Conditionally notify parent via fd 3

This commit is contained in:
Alex D. 2024-12-13 14:54:40 +00:00
parent 64eecab34d
commit d24d4ced54
Signed by: caskd
GPG Key ID: F92BA85F61F4C173

View File

@ -136,9 +136,15 @@ static const char *passmancmd[] = SHWRAP("~/Sources/Scripts/bemenu/passman/scrip
/* Autostart */ /* Autostart */
// 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 // 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
// This also notifies the parent via fd 3 when it's ready
static const char *const autostart[] = { static const char *const autostart[] = {
"importas", "SESSION_ENV", "SESSION_ENV", "execlineb", "-c",
"s6-dumpenv", "${SESSION_ENV}/", NULL, "importas SESSION_ENV SESSION_ENV "
"if { "
"s6-dumpenv ${SESSION_ENV}/ "
"} "
"fdmove -c 1 3 "
"echo ", NULL,
NULL /* terminate */ NULL /* terminate */
}; };