Skip to content

Commit

Permalink
macOS: Remove udev rule warning
Browse files Browse the repository at this point in the history
Warning about missing udev rules do not apply to macOS.

Related #2729
  • Loading branch information
MattHag committed Jan 1, 2025
1 parent a7bdd08 commit a2d4215
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/solaar/gtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2d4215

Please sign in to comment.