import os import sys def main(): if "SUDO_UID" in os.environ: print( "\nRunning Proton VPN as root is not supported and " "is highly discouraged, as it might introduce " "undesirable side-effects." ) user_input = input("Are you sure that you want to proceed (y/N): ") user_input = user_input.lower() if not user_input == "y": sys.exit(1) # Import has to be made here due to dbus delay on ubuntu 18.04, # when running with sudo from .cli import ProtonVPNCLI ProtonVPNCLI()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 0 B | 0644 |
|
cli.py | File | 11.7 KB | 0644 |
|
cli_dialog.py | File | 6.49 KB | 0644 |
|
cli_wrapper.py | File | 36.83 KB | 0644 |
|
constants.py | File | 5.46 KB | 0644 |
|
logger.py | File | 1.25 KB | 0644 |
|
main.py | File | 584 B | 0644 |
|