diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-08 16:02:57 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-08 16:02:57 +0900 |
| commit | fb8c9e4eeb062a99f3b7232433c4ba8bb0917ea5 (patch) | |
| tree | 3726df22cd237ad627ab99f6dc96886bc32fedd1 /ar/.local/bin/sd | |
| parent | af60476d30fb0003963ee10d0b53869f89c72f89 (diff) | |
updates
Diffstat (limited to 'ar/.local/bin/sd')
| -rwxr-xr-x | ar/.local/bin/sd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.local/bin/sd b/ar/.local/bin/sd index 67b0d5a..8c6f6a4 100755 --- a/ar/.local/bin/sd +++ b/ar/.local/bin/sd @@ -6,7 +6,7 @@ windowPID=$(xprop -id "$(xprop -root | sed -n "/_NET_ACTIVE_WINDOW/ s/^.*# // p" PIDlist=$(pstree -lpATna "$windowPID" | sed -En 's/.*,([0-9]+).*/\1/p' | tac) for PID in $PIDlist; do cmdline=$(ps -o args= -p "$PID") - process_group_leader=$(ps -o comm= -p "$(ps -o pgid= -p "$PID" | tr -d ' ')") + process_group_leader=$(ps -o comm= -p "$(ps -o pgid= -p "$PID" | tr -d ' ')" 2>/dev/null) cwd=$(readlink /proc/"$PID"/cwd) # zsh and lf won't be ignored even if it shows ~ or / case "$cmdline" in |
