diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /os/etc/s6-rc/src/desktop-session-running/up | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'os/etc/s6-rc/src/desktop-session-running/up')
| -rw-r--r-- | os/etc/s6-rc/src/desktop-session-running/up | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/os/etc/s6-rc/src/desktop-session-running/up b/os/etc/s6-rc/src/desktop-session-running/up deleted file mode 100644 index de48622..0000000 --- a/os/etc/s6-rc/src/desktop-session-running/up +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/execlineb -P - -# get username from config -envfile /etc/s6-rc/config/user.conf -importas -iu USER USER -s6-envuidgid -i ${USER} -importas -iu UID UID - -# find first process with marker=true envvar set -backtick -E pid { sh /etc/s6-rc/src/desktop-session-running/find-marker-proc ${UID} } - -# create session-env directory -importas -D "/run" XDG_RUNTIME_DIR XDG_RUNTIME_DIR -define dir ${XDG_RUNTIME_DIR}/session-env -foreground { mkdir -p ${dir} } -cd ${dir} -pipeline { grep -zE "^(SWAY|I3|.*DISPLAY|DBUS|XDG|BEMENU|PATH|HOME|LANG)" /proc/${pid}/environ } -foreground { awk --assign=RS=\\0 -- "{idx=index($0,\"=\"); print substr($0,idx+1) > substr($0,0,idx-1)}" } - -# hack -foreground { sleep 0.5 } |