openvpn gui systray icon missing after incorrect password

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
wizangzing
OpenVpn Newbie
Posts: 1
Joined: Fri Nov 05, 2010 5:45 pm

openvpn gui systray icon missing after incorrect password

Post by wizangzing » Fri Nov 05, 2010 6:03 pm

I open a connection via the Windows 7 task scheduler when I log on as:

Code: Select all

C:\Program Files\OpenVPN\bin\openvpn-gui-1.0.3.exe --connect wizangzing.ovpn
This works great unless I mis-type my password. When that happens the openvpn gui window is dismissed, andthere is no openvpn icon in the systray to use for connecting. If I try starting the gui again, it tells me it is already running. I end up killing the process from the windows task manager and relaunching the gui.

Is there a way to force the systray icon to appear or another way to connect
when in this state?

Code: Select all

$ cat wizangzing.ovpn|grep -vE '^#|^;|^$'
client
dev tun
proto udp
remote vpn.xxxxx.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert wizangzing.crt
key wizangzing.key
ns-cert-type server
comp-lzo
verb 3
Thanks.

george
Forum Team
Posts: 117
Joined: Tue Jun 09, 2009 4:25 pm
Location: St. Louis, MO USA

Re: openvpn gui systray icon missing after incorrect passwor

Post by george » Mon Nov 08, 2010 2:10 pm

I ran into the same issue, and resolved it with a batch file:

Code: Select all

@ECHO OFF

::restart openvpn-gui.exe to cause explorer to re-register the openvpn-gui.exe system tray icon.


::Stops openvpn-gui.exe
taskkill /IM openvpn-gui.exe

::Starts openvpn-gui.exe
cd C:\"Program Files"\openvpn\bin
start openvpn-gui.exe
You may need to adjust the path statements.

Post Reply