-
Notifications
You must be signed in to change notification settings - Fork 17
Disable update prompt with env, refresh vpn list without updating secret #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@devdinu auto update check is replaced with command option Refresh VPN list option |
1fd31ea
to
848c8fc
Compare
Fixed conflicts and updated the PR. |
lazy-connect.sh
Outdated
@@ -60,7 +69,7 @@ function _lazy_connect() { | |||
set vpnMenu to (menu bar item 1 of menu bar 1 where description is "VPN") | |||
tell vpnMenu to click | |||
try | |||
click menu item vpnName of menu 1 of vpnMenu | |||
click menu item ("Connect " & vpnName) of menu 1 of vpnMenu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required because the VPN names are stored with the prefix "Connect". This is required to handle extra spaces in VPN names. For example "Connect VPN name" will not work with click menu item ("Connect " & vpnName) of menu 1 of vpnMenu
.
I suspect this arunvelsriram@9f93393#diff-7f006cb852c9dd49a430db80a7c9bac8R38 |
dc41f4b
to
1a1629b
Compare
For new users this change introduces some issues. Here is the output of
TODO:
|
lazy-connect.sh
Outdated
#! /bin/bash | ||
#!/bin/bash | ||
|
||
config_dir=~/.config/lazy-connect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these variables will be exposed to the current shell that sources lazy-connect. so it's better to use either local variables or in worst case prefix it with _lazy_connect_
so that it doesn't collide with other global variables of any other script.
c170843
to
a225367
Compare
Uh oh!
There was an error while loading. Please reload this page.