Skip to content

Commit

Permalink
Update doc and help message
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Apr 28, 2021
1 parent aca9736 commit c3c56cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand All @@ -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::

Expand Down Expand Up @@ -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
<https://github.com/flozz/nautilus-terminal/issues>`_ with as much information
as possible:
Expand Down
2 changes: 2 additions & 0 deletions nautilus_terminal/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c3c56cd

Please sign in to comment.