ui: better message for missing udev file

This commit is contained in:
Peter F. Patel-Schneider 2021-04-21 08:51:48 -04:00
parent 98b5804a21
commit 4edbf51f17
2 changed files with 2 additions and 5 deletions

View File

@ -58,9 +58,6 @@ you will then need to either disconnect your receivers and
any USB-connected or Bluetooth-connected devices and any USB-connected or Bluetooth-connected devices and
re-connect them or reboot your computer. re-connect them or reboot your computer.
You only need to install Solaar's udev rule if it is not already installed
on your system or the rule has changed.
## Running from the Download Directories ## Running from the Download Directories
To run Solaar from the download directories, first install the Solaar udev rule if necessary. To run Solaar from the download directories, first install the Solaar udev rule if necessary.

View File

@ -147,14 +147,14 @@ def main():
udev_file = '42-logitech-unify-permissions.rules' 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('/lib/udev/rules.d/' + udev_file):
print(_i18n._('Solaar depends on a udev file that is not present')) print(_i18n._('ERROR: '), end='')
print(_i18n._('Solaar depends on a udev file that is not present'), end='.\n')
print( print(
_i18n._( _i18n._(
'For more information see the Solaar installation directions\n' 'For more information see the Solaar installation directions\n'
'at https://pwr-solaar.github.io/Solaar/installation' 'at https://pwr-solaar.github.io/Solaar/installation'
) )
) )
try: try:
import solaar.ui as ui import solaar.ui as ui
import solaar.listener as listener import solaar.listener as listener