From c30f7f5e6359e34dcba5a8f8f186de87b6957356 Mon Sep 17 00:00:00 2001 From: Kristen McWilliam <9575627+Merrit@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:04:12 -0400 Subject: [PATCH] fix(linux): don't show plasmashell process in x11 X11 sessions seem to be showing plasmashell processes for each monitor and virtual desktop. --- lib/native_platform/src/linux/linux.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/native_platform/src/linux/linux.dart b/lib/native_platform/src/linux/linux.dart index 61c2496..8424872 100644 --- a/lib/native_platform/src/linux/linux.dart +++ b/lib/native_platform/src/linux/linux.dart @@ -50,6 +50,10 @@ class Linux implements NativePlatform { if (window != null) windows.add(window); } + // Remove any instances of plasmashell, which is the KDE desktop. + // It appears to show up on X11 sessions, for each monitor and virtual desktop. + windows.removeWhere((window) => window.process.executable == 'plasmashell'); + return windows; }