gtk: add new possible locations for udev rule

This commit is contained in:
Peter F. Patel-Schneider 2021-08-06 12:51:44 -04:00
parent 70a0fcd906
commit ee4275f45c
1 changed files with 3 additions and 1 deletions

View File

@ -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(