From ee4275f45c4cf616586fbe53b7432f7e9d86c949 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Fri, 6 Aug 2021 12:51:44 -0400 Subject: [PATCH] gtk: add new possible locations for udev rule --- lib/solaar/gtk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/solaar/gtk.py b/lib/solaar/gtk.py index a0af1f7f..d7e648ed 100755 --- a/lib/solaar/gtk.py +++ b/lib/solaar/gtk.py @@ -146,7 +146,9 @@ def main(): _require('gi.repository.Gtk', 'gir1.2-gtk-3.0', gi, 'Gtk', '3.0') udev_file = '42-logitech-unify-permissions.rules' - if not os.path.isfile('/etc/udev/rules.d/' + udev_file) and not os.path.isfile('/lib/udev/rules.d/' + udev_file): + if 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): print(_i18n._('ERROR: '), end='') print(_i18n._('Solaar depends on a udev file that is not present'), end='.\n') print(