From 6c8ca409eaaaa5f838368c62f34fc88f16cbf32b Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 28 Feb 2020 04:44:35 +0000 Subject: proton utils: fixes for protonvpn ng --- net/jao-proton-utils.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'net/jao-proton-utils.el') diff --git a/net/jao-proton-utils.el b/net/jao-proton-utils.el index ca47faa..980a317 100644 --- a/net/jao-proton-utils.el +++ b/net/jao-proton-utils.el @@ -61,8 +61,9 @@ (let ((inhibit-read-only t) (cmd (format "sudo protonvpn %s" things))) (delete-region (point-min) (point-max)) - (insert cmd " ...") - (shell-command cmd b)) + (message "Running: %s ...." cmd) + (shell-command cmd b) + (message "")) (proton-vpn-mode))) (defun proton-vpn-status () @@ -72,7 +73,7 @@ (defun proton-vpn-connect (cc) (interactive "P") (let ((cc (when cc (read-string "Country code: ")))) - (jao-proton-vpn--do (if cc (format "c -cc %s" cc) "c -sc")) + (jao-proton-vpn--do (if cc (format "c --cc %s" cc) "c --sc")) (proton-vpn-status))) (defun proton-vpn-disconnect () -- cgit v1.2.3