OpenVPN / openvpn-gui

OpenVPN GUI is a graphical frontend for OpenVPN running on Windows 7 / 8 / 10. It creates an icon in the notification area from which you can control OpenVPN to start/stop your VPN tunnels, view the log and do other useful things.
Other
1.38k stars 397 forks source link

Handle long lists of .ovpn files - ui fix + improvements #654

Closed ed-french closed 9 months ago

ed-french commented 10 months ago

Services like PIA provide around 100 .ovpn files, this becomes very clumsy when used in a naïve way, resulting in the following two "issues" around usability:

Replication

Windows 11 on ARM 22H2 build 22621.2134 Download ovpn files from : https://helpdesk.privateinternetaccess.com/kb/articles/where-can-i-find-your-ovpn-files Right click on systray icon mouseover "System Profiles" User is provided with a list that extends beyond the page boundaries.

Issue 1:

Mouse scroll doesn't work on this list, instead the list must be scrolled using the UI buttons at the top and bottom of the list. List moves one by one as button held down.

Expected behaviour:

Minimum: Scroll works Ideally: autocomplete works so you can start typing a country name and see a filtered list

Issue 2:

User selects a first territory, connects and adds credentials saving for that territory. User connects to a second territory and has to re-enter the credentials again.

Expected behavour:

Ideally, the app would recognise that vpn was associated with more than 1 ovpn file and offer the user the option to save for all matched networks.

If not practical, then offering the user the option to save the credentials for global use.

selvanair commented 10 months ago

The config list is implemented as a menu, so, afaict, no scope for getting scroll to work. Changing this into a list view would require a major overhaul which is unlikely to happen.

It may not be too hard to have a saved global credential as a fallback, but I have no time work on it. Patches welcome.

A quick solution would be for the user to organize those 100 or more config files into sub-directories with no more than a few dozen in one folder. The GUI will display them nested which is easier to navigate. In addition to that, moving them to sub-directories under %USERPROFILE%\OpenVPN\config will eliminate the the extra level of nesting introduced by "System Profiles" heading.