From c3c56cdc5421bf6cb77e204142d93f13d2fba8f7 Mon Sep 17 00:00:00 2001 From: Fabien LOISON Date: Wed, 28 Apr 2021 18:05:46 +0200 Subject: [PATCH] Update doc and help message --- README.rst | 15 +++++++++++---- nautilus_terminal/__main__.py | 2 ++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index f37adc1..a058b94 100644 --- a/README.rst +++ b/README.rst @@ -94,12 +94,10 @@ From PyPI User install:: pip3 install --user nautilus_terminal - python3 -m nautilus_terminal --install-user System-wide install:: sudo pip3 install nautilus_terminal - sudo nautilus-terminal --install-system Then kill Nautilus to allow it to load the new extension:: @@ -117,12 +115,10 @@ Clone the repository and navigate to it:: User install:: pip3 install --user . - python3 -m nautilus_terminal --install-user System-wide install:: sudo pip3 install . - sudo nautilus-terminal --install-system Then kill Nautilus to allow it to load the new extension:: @@ -182,6 +178,17 @@ opening an issue: Nautilus Python: Installed Nautilus Terminal Extension: Installed + If there is any error, you will have an help message similar to this one to + tell you how to fix:: + + Nautilus Python: Installed + Nautilus Terminal Extension: Absent + Please install the Nautilus Extension with one of the following commands: + System-wide: sudo nautilus-terminal --install-system + Current user: nautilus-terminal --install-user + NOTE: you may need to replace the 'nautilus-terminal' command by 'python3 -m nautilus_terminal'. + + If none of the above worked, please `open an issue `_ with as much information as possible: diff --git a/nautilus_terminal/__main__.py b/nautilus_terminal/__main__.py index 241d960..4fc4dd4 100644 --- a/nautilus_terminal/__main__.py +++ b/nautilus_terminal/__main__.py @@ -64,12 +64,14 @@ def __call__(self, parser, namespace, value, option_string=None): result += " Please remove one of the installed extentions using one of the following commands:\n" result += " \x1B[1;34mSystem-wide:\x1B[0m sudo nautilus-terminal --uninstall-system\n" result += " \x1B[1;34mCurrent user:\x1B[0m nautilus-terminal --uninstall-user\n" + result += " NOTE: you may need to replace the 'nautilus-terminal' command by 'python3 -m nautilus_terminal'." else: retcode = 1 result += "\x1B[1;31mAbsent\x1B[0m\n" result += " Please install the Nautilus Extension with one of the following commands:\n" result += " \x1B[1;34mSystem-wide:\x1B[0m sudo nautilus-terminal --install-system\n" result += " \x1B[1;34mCurrent user:\x1B[0m nautilus-terminal --install-user\n" + result += " NOTE: you may need to replace the 'nautilus-terminal' command by 'python3 -m nautilus_terminal'." print(result) sys.exit(retcode)