Bug 350413 - [RFE] [OpenVPN] ovpn file type should be recognized / filetype association [is poss!]
Summary: [RFE] [OpenVPN] ovpn file type should be recognized / filetype association [i...
Status: RESOLVED FIXED
Alias: None
Product: plasma-nm
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 14:26 UTC by Kai Uwe Broulik
Modified: 2024-09-01 14:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2015-07-20 14:26:35 UTC
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
Comment 1 fire f. 2019-08-09 11:18:39 UTC
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!
Comment 2 fire f. 2019-08-09 11:25:35 UTC
I don't think the kcmshell5 --args kcm_netw...

GUI is scriptable. the above solution does not seem to have any disadvantages.
Comment 3 Bug Janitor Service 2023-02-26 15:43:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-nm/-/merge_requests/225
Comment 4 Nicolas Fella 2024-08-31 10:12:20 UTC
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