summaryrefslogtreecommitdiff
path: root/ar/.local/bin/sd
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-08 16:02:57 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-08 16:02:57 +0900
commitfb8c9e4eeb062a99f3b7232433c4ba8bb0917ea5 (patch)
tree3726df22cd237ad627ab99f6dc96886bc32fedd1 /ar/.local/bin/sd
parentaf60476d30fb0003963ee10d0b53869f89c72f89 (diff)
updates
Diffstat (limited to 'ar/.local/bin/sd')
-rwxr-xr-xar/.local/bin/sd2
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