forked from awsassets/linux-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sudo dbus fix for ubuntu 18.04
- Loading branch information
Alexandru Cheltuitor
committed
Dec 14, 2020
1 parent
3db683a
commit c706884
Showing
4 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
protonvpn-cli (3.1.0-11) UNRELEASED; urgency=low | ||
protonvpn-cli (3.1.0-12) UNRELEASED; urgency=low | ||
|
||
* Add support for protonvpn-nm-lib v0.2.0-1 | ||
* Cache servers after connecting to vpn if previous cache failed | ||
|
@@ -10,7 +10,7 @@ protonvpn-cli (3.1.0-11) UNRELEASED; urgency=low | |
* Bugfix: Catch KeyringError | ||
* Bugfix: Cache prior displays connection status; incorrect cache when using dialog | ||
|
||
-- Proton Technologies AG <[email protected]> Mond, 14 Dec 2020 11:25:18 +0000 | ||
-- Proton Technologies AG <[email protected]> Mon, 14 Dec 2020 12:55:37 +0000 | ||
|
||
protonvpn-cli (3.0.0-10) UNRELEASED; urgency=low | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
import os | ||
import sys | ||
|
||
|
||
def main(): | ||
if "SUDO_UID" in os.environ: | ||
print( | ||
"\nRunning ProtonVPN 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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters