From b8a2be4fcdf2994aee4621e8473e653a136b0f46 Mon Sep 17 00:00:00 2001 From: Jacky Chen Date: Mon, 23 Dec 2024 12:04:07 +0800 Subject: [PATCH] fix: windows app (via wine) have null wm_class --- ignite | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ignite b/ignite index 038fc77..53b38a2 100755 --- a/ignite +++ b/ignite @@ -11,7 +11,10 @@ function get_firefox_window { [ .[] | select ( (.in_current_workspace == true) and - (.wm_class | startswith("firefox") or endswith("firefox") ) + ( + (if .wm_class == null then "" else .wm_class end) | + startswith("firefox") or endswith("firefox") + ) ) ] | first | .id' }