Double clicking a .ovpn file should import it to network manager and open the connection config file as if I manually imported it Reproducible: Always Steps to Reproduce: 1. Have a .ovpn file 2. Double click it 3. Actual Results: A text editor opens Expected Results: A new VPN connection is created and the dialog prompting its details opens
since the Gnome surrogate is better than its KDE counterpart, why not associate .ovpn files in Dolphin using the command line : nm-connection-editor -i %f works like a charm and is like 3 clicks only!
I don't think the kcmshell5 --args kcm_netw... GUI is scriptable. the above solution does not seem to have any disadvantages.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-nm/-/merge_requests/225
Git commit b7152c9faafe488ae5b48ea577bba9bf612a0656 by Nicolas Fella. Committed on 31/08/2024 at 10:09. Pushed by nicolasfella into branch 'master'. Allow importing VPN files by clicking on them Add a desktop file that registers itself has handler for VPN files (currently OpenVPN and Cisco VPN). When opening a file the connections KCM is opened and the VPN imported as if it was imported via the KCM M +2 -0 CMakeLists.txt M +67 -7 kcm/kcm.cpp M +4 -1 kcm/kcm.h A +8 -0 org.kde.vpnimport.desktop https://invent.kde.org/plasma/plasma-nm/-/commit/b7152c9faafe488ae5b48ea577bba9bf612a0656