From 83c380f85bf1b7a8d09e15225779806aae6c1277 Mon Sep 17 00:00:00 2001 From: MattHag <16444067+MattHag@users.noreply.github.com> Date: Fri, 27 Dec 2024 01:03:20 +0100 Subject: [PATCH] macOS: Remove udev rule warning Warning about missing udev rules do not apply to macOS. Related #2729 --- lib/solaar/gtk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/solaar/gtk.py b/lib/solaar/gtk.py index 65ff13b9..1cbee618 100755 --- a/lib/solaar/gtk.py +++ b/lib/solaar/gtk.py @@ -178,7 +178,8 @@ def main(): udev_file = "42-logitech-unify-permissions.rules" if ( - logger.isEnabledFor(logging.WARNING) + platform.system() == "Linux" + and logger.isEnabledFor(logging.WARNING) and not os.path.isfile("/etc/udev/rules.d/" + udev_file) and not os.path.isfile("/usr/lib/udev/rules.d/" + udev_file) and not os.path.isfile("/usr/local/lib/udev/rules.d/" + udev_file)