From ac5af0498070e14a53d01c0374590e0ef84fd6e4 Mon Sep 17 00:00:00 2001
From: derrod <xlnedder@gmail.com>
Date: Wed, 5 Jan 2022 14:21:24 +0100
Subject: [PATCH] [utils] Fix CrossOver running check detecting the CD helper

---
 legendary/utils/crossover.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/legendary/utils/crossover.py b/legendary/utils/crossover.py
index 9398da3..04abb93 100644
--- a/legendary/utils/crossover.py
+++ b/legendary/utils/crossover.py
@@ -56,7 +56,7 @@ def mac_get_bottle_path(bottle_name):
 def mac_is_crossover_running():
     try:
         out = subprocess.check_output(['launchctl', 'list'])
-        return b'com.codeweavers.CrossOver' in out
+        return b'com.codeweavers.CrossOver.' in out
     except Exception as e:
         _logger.warning(f'Getting list of running application bundles failed: {e!r}')
         return True  # assume the worst