Open dsommers opened 3 months ago
Wow, this is a very nice interaction that I didn't think off. I definitely want to properly support this behavior.
I have added the necessary code, but this interaction now runs into problems which I believe are caused by two different applications simultaneously calling Connect()
on the same session. I'll try to figure out some work-around and check if it works better with v22.
If starting a VPN session from the command line (like
openvpn3 session-start
) which requires user credentials, the indicator will pop up the query box. This is actually quite cool! But if the credentials are provided via the command line, clicking "Cancel" will kill the VPN session.The
openvpn3-indicator
should check that the session minor status is stillCFG_REQUIRE_USER
before doing the disconnect. This pop-up should ideally also detect if the session state changes while being open and close the pop-up automatically if the session changes to any of the otherCONN_*
minor statuses.The
openvpn3
command line will also need to be adopted a bit to also avoid similar misbehaviour; I'll tackle that as part of the GDBus++ refactoring already in progress.