passepartoutvpn / passepartout-app

VPN client for Apple platforms.
https://passepartoutvpn.app
GNU General Public License v3.0
779 stars 120 forks source link

Run Shortcuts without opening app #214

Open thsmdt opened 2 years ago

thsmdt commented 2 years ago

Hi again 😄

Currently, when using a shortcut to connect to or disconnect from a VPN, the Passepartout App will open; however, this is sometimes undesired. It would be great if the shortcut ran in the background entirely. Further, this is necessary for shortcuts activated as automation when opening an app.

For instance, a user may use a business app that requires access to a company's internal network. Yet, being connected to the VPN is undesired outside of this app. A user can use Shortcuts' automation feature, so they don't need to remember to enable/disable the VPN on their own, which is a significant convenience.

With the current behavior of opening Passepartout in the foreground on invocation of the shortcut, the business app cannot even be reached anymore, as Passepartout displaces it, and switching back into the business app will cause the shortcut to be triggered yet again.


EDIT

Maybe https://developer.apple.com/documentation/appintents/

Discoveries:

mazulatas commented 2 years ago

This problem is also relevant for me, I would like the connection to be established in the background.

keeshux commented 2 years ago

https://passepartoutvpn.app/faq/#why-dont-siri-shortcuts-execute-in-the-background

rudeqit commented 2 years ago

Got same problem. But how for example protonvpn can connect to vpn by shortcut? They use native VPN protocols (IKEv2, IPsec etc.)?