Skip to content

Commit 47f7274

Browse files
committed
🐛 Fix: add linux terminal fallback error handler
ISSUES CLOSED: #179
1 parent afbddcb commit 47f7274

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/utils/clipboard/linux.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ elif [ "$XDG_SESSION_TYPE" = "wayland" ]; then
2626
echo "no image"
2727
exit 1
2828
fi
29+
else
30+
# fallback for unsupported session types
31+
echo >&2 "Error: Unsupported session type '$XDG_SESSION_TYPE'."
32+
echo >&2 "Solution: The variable of XDG_SESSION_TYPE must set as 'x11' or 'wayland'."
33+
exit 1
2934
fi

0 commit comments

Comments
 (0)