A minimal, open-source system tray wrapper for the GlobalProtect-openconnect CLI client (gpclient).
The upstream project offers a GUI, but it is proprietary and paid. This project provides a free, lightweight alternative that wraps the CLI commands into a convenient and minimal system tray icon for easy connection management.
- One-click Disconnect: Easily disconnect via the tray menu.
- Auto-Connect: Launches your saved configuration immediately.
- Seamless Permissions: Automatically configures
sudoersso you can run the root-requiredgpclientwithout constant password prompts.
- Linux
- Python 3
PyQt5(Install viapip install PyQt5orsudo dnf install python3-qt5orsudo apt install python3-pyqt5)gpclient(GlobalProtect-openconnect) installed.
-
Clone the repository:
git clone https://github.com/mwdle/GlobalProtectTray.git cd GlobalProtect-Tray -
Run the installer:
./install.sh
The script will prompt you for:
- VPN Portal Hostname (e.g.,
vpn.example.com) - SAML Browser (e.g.,
chrome,firefox,defaultfor default system browser, or leave blank to use embedded browser) - OpenSSL Legacy Fix (enable if encountering issues with legacy servers)
Note on Permissions: The installer runs
sudoto add a file to/etc/sudoers.d/. This allows your user to executegpclientas root without entering a password, ensuring a seamless "click-to-connect" experience.
Search for GlobalProtect VPN in your application launcher. The app will start the VPN connection (as configured in the installation) immediately. The tray icon serves as an indicator that you are connected, and right clicking it will reveal a disconnect button.
This project is licensed under the MIT License.