Bug 468365

Summary: Plasma Network editor cannot import wireguard configuration files
Product: [Applications] systemsettings Reporter: Sheeva S. <sheeva>
Component: kcm_networkmanagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: jgrulich
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sheeva S. 2023-04-10 20:43:47 UTC
STEPS TO REPRODUCE
1. create your free proto"n vpn account and log in.
2. go to https://account.protonvpn.com/downloads
3. scroll to the lower part of the page where it says "WireGuard configuration" 
4. file step 4: "4. Select a server to connect to", and click "Create"
5. a message will appear. just click "Download"
6. go to KDE System Seetting>Connections
7. find the "+" button (Add new connection button) and click it.
8. the "choose a connection type" window will appear . 
9. scroll to the bottom and double-click  "Import VPN connection..."
10. file picker will appear. just pick the .conf file that was downloaded on step 5.
11. It will show an error "Failed to import VPN connection: The file to import wasn’t a valid OpenVPN client configuration"
Comment 1 Bug Janitor Service 2023-04-12 16:23:12 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-nm/-/merge_requests/242
Comment 2 Nicolas Fella 2023-04-29 14:46:23 UTC
Git commit 70e3d1e8a7ac87b23f313833985fd8d5e40ff885 by Nicolas Fella.
Committed on 29/04/2023 at 14:43.
Pushed by nicolasfella into branch 'master'.

Use nm_conn_wireguard_import to import WireGuard files

This is more robust than our hand-rolled implementation
Related: bug 420066, bug 452952, bug 423973, bug 427222

M  +12   -0    kcm/kcm.cpp

https://invent.kde.org/plasma/plasma-nm/commit/70e3d1e8a7ac87b23f313833985fd8d5e40ff885
Comment 3 Nicolas Fella 2023-04-29 14:46:35 UTC
Git commit 0237be91fd8a714efa3ef9d88c7ac157fcff488b by Nicolas Fella.
Committed on 29/04/2023 at 14:46.
Pushed by nicolasfella into branch 'Plasma/5.27'.

Use nm_conn_wireguard_import to import WireGuard files

This is more robust than our hand-rolled implementation
Related: bug 420066, bug 452952, bug 423973, bug 427222
(cherry picked from commit 70e3d1e8a7ac87b23f313833985fd8d5e40ff885)

M  +12   -0    kcm/kcm.cpp

https://invent.kde.org/plasma/plasma-nm/commit/0237be91fd8a714efa3ef9d88c7ac157fcff488b