From 529fe6868542dd67de65216b80398242060bc0ec Mon Sep 17 00:00:00 2001 From: Ezri Brimhall Date: Fri, 13 Sep 2024 15:06:01 -0600 Subject: [PATCH] Updated VPN toggle with timezone fix -- seems to work? --- .local/bin/vpn-toggle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/vpn-toggle b/.local/bin/vpn-toggle index ccedc64..3d141b3 100755 --- a/.local/bin/vpn-toggle +++ b/.local/bin/vpn-toggle @@ -6,10 +6,10 @@ if pgrep gpclient &>/dev/null; then # VPN is connected, so disconnect echo "Disconnecting from VPN..." - pkexec gpclient disconnect + pkexec env TZ=Etc/UTC gpclient disconnect else # VPN is disconnected, so connect echo "Connecting to VPN..." # pkexec doesn't pass the DISPLAY and XAUTHORITY environment variables, so we need to pass them manually - pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gpclient connect gp.usu.edu + pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY TZ=Etc/UTC gpclient connect gp.usu.edu fi