From 4edbf51f17b1ceace4d534cf63b898372fa912ed Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Wed, 21 Apr 2021 08:51:48 -0400 Subject: [PATCH] ui: better message for missing udev file --- docs/installation.md | 3 --- lib/solaar/gtk.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index a453f83b..8c4758d8 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -58,9 +58,6 @@ you will then need to either disconnect your receivers and any USB-connected or Bluetooth-connected devices and 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 To run Solaar from the download directories, first install the Solaar udev rule if necessary. diff --git a/lib/solaar/gtk.py b/lib/solaar/gtk.py index 28b02af2..a3be60a1 100755 --- a/lib/solaar/gtk.py +++ b/lib/solaar/gtk.py @@ -147,14 +147,14 @@ def main(): 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): - 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( _i18n._( 'For more information see the Solaar installation directions\n' 'at https://pwr-solaar.github.io/Solaar/installation' ) ) - try: import solaar.ui as ui import solaar.listener as listener