eduvpn / apple

app for iOS and macOS
Other
58 stars 18 forks source link

[macOS] do not prevent shutdown of system / do not bother user #452

Closed ghost closed 2 years ago

ghost commented 2 years ago

The current behavior of the eduVPN/Let's Connect! app is that it prevents the system from shutting down and requires the user to first terminate the VPN connection.

The implementation asks the user to confirm whether they want to disconnect the VPN whenb CMD+Q is used, or Quit from the context menu in the top bar. This is GOOD behavior!

However, when the system shuts down it also triggers this behavior and asks the user, this is NOT good. It should disconnect the VPN (as per APIv3), not bother the user and continue the shutdown.

Two questions that may be relevant in solving this:

  1. Is it possible for apps to see the difference between CMD+Q (and context menu quit) and the system shutting down? Perhaps a different "signal" is sent to the app?
  2. Is it possible to position the VPN app as the last app "to go" to make sure all (other) applications with network activity are closed before the VPN is taken down?

The first one is the most important, the second is nice to have.

NOTE: even though technically the app sets up a system VPN, it then does not behave like it is managing a proper system VPN that stays connected, auto connects at boot and does not bother the user at all, so this 'exception' from the APIv3 document does not apply here, I guess.

efef commented 2 years ago

identical to https://github.com/eduvpn/apple/issues/431