Skip to content

Commit

Permalink
Fixed bug with fuser output
Browse files Browse the repository at this point in the history
  • Loading branch information
onyasumi committed Sep 26, 2023
1 parent abb0050 commit 03f1a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vega
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ wm() {

has fuser
if [ $? = 0 ]; then
wmpid="$(fuser "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY:-wayland-0}" 2>&1)"
wmpid="$(fuser "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY:-wayland-0}" 2>/dev/null)"
retval=$?
wmpid="$(echo $wmpid | awk -F ' ' '{print $2}')"
wmpid="$(echo $wmpid | awk -F ' ' '{print $0}')"
else
wmpid="$(lsof -t "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY:-wayland-0}" 2>&1)"
retval=$?
Expand Down

0 comments on commit 03f1a4b

Please sign in to comment.