From 1b4cf9270fd8ca0da974d61d0d662525193daf0e Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Thu, 12 Apr 2018 20:19:46 -0700 Subject: [PATCH] protection against doubled wm output --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index f8e253a..23d9d0f 100755 --- a/inxi +++ b/inxi @@ -16281,7 +16281,7 @@ sub generate_system_data { if ($extra > 2 && $desktop_data[4]){ $desktop_info = $desktop_data[4]; } - if ($desktop_data[5]){ + if ($desktop_data[5] && (!$desktop_data[0] || lc($desktop_data[0]) ne lc($desktop_data[5]))){ $wm = $desktop_data[5]; } }