Add installation and uninstallation scripts with updated README instructions
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ environment's system tray.
|
||||
sh -c 'curl -sL https://nextdns.io/install | sh'
|
||||
```
|
||||
|
||||
2. **Python 3 & PyQt6**: The interface is built using Python 3 and the Qt6
|
||||
1. **Python 3 & PyQt6**: The interface is built using Python 3 and the Qt6
|
||||
toolkit. (This is installed by default on (K)ubuntu.)
|
||||
|
||||
```bash
|
||||
@@ -21,10 +21,34 @@ sudo apt update
|
||||
sudo apt install python3 python3-pyqt6
|
||||
```
|
||||
|
||||
3. **Polkit Agent**: The script uses pkexec to handle start/stop commands safely. Most desktop environments (KDE, GNOME, XFCE) come with this pre-installed.
|
||||
1. **Polkit Agent**: The script uses pkexec to handle start/stop commands safely. Most desktop environments (KDE, GNOME, XFCE) come with this pre-installed.
|
||||
|
||||
## Installation
|
||||
|
||||
Preferred (single command):
|
||||
|
||||
```bash
|
||||
./install.sh
|
||||
```
|
||||
|
||||
Enable autostart during install:
|
||||
|
||||
```bash
|
||||
./install.sh --autostart
|
||||
```
|
||||
|
||||
## Uninstall
|
||||
|
||||
```bash
|
||||
./uninstall.sh
|
||||
```
|
||||
|
||||
Preview what would be removed:
|
||||
|
||||
```bash
|
||||
./uninstall.sh --dry-run
|
||||
```
|
||||
|
||||
1. **Copy the files to your home directory:**
|
||||
|
||||
```bash
|
||||
@@ -36,20 +60,23 @@ cp home/.local/share/applications/nextdns-tray.desktop ~/.local/share/applicatio
|
||||
cp home/.local/share/icons/nextdns.png ~/.local/share/icons/
|
||||
```
|
||||
|
||||
2. **Make the script executable**
|
||||
1. **Make the script executable**
|
||||
|
||||
```bash
|
||||
chmod +x ~/.local/bin/nextdns-tray
|
||||
```
|
||||
|
||||
3. **(Optional) Add to Autostart**: If you want the tray to start automatically when you log in:
|
||||
The bundled `nextdns-tray.desktop` launcher runs `nextdns-tray` directly (via `PATH`) so it is not tied to any repository location.
|
||||
If your desktop session does not include `~/.local/bin` in `PATH`, use an absolute path in `~/.local/share/applications/nextdns-tray.desktop`.
|
||||
|
||||
1. **(Optional) Add to Autostart**: If you want the tray to start automatically when you log in:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.config/autostart
|
||||
cp ~/.local/share/applications/nextdns-tray.desktop ~/.config/autostart/
|
||||
```
|
||||
|
||||
### Installation (one-liner)
|
||||
### Manual Installation (equivalent)
|
||||
|
||||
```bash
|
||||
sh -c 'curl -sL https://nextdns.io/install | sh'
|
||||
|
||||
Reference in New Issue
Block a user