]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Interactive service: do not force a target desktop for openvpn.exe
authorSelva Nair <selva.nair@gmail.com>
Thu, 18 May 2023 17:33:45 +0000 (13:33 -0400)
committerGert Doering <gert@greenie.muc.de>
Fri, 19 May 2023 07:19:02 +0000 (09:19 +0200)
commit244d9b7942dabf0297c8f689457eeb0f9fa0aa1e
tree4b8a4b7da6e3b3f10140b96ecb684f8c2bfdaaec
parentc543cf464e97866e20345feb46c82752fedc9d71
Interactive service: do not force a target desktop for openvpn.exe

Setting the desktop as "winsta0\default" does not always work when run
from a non-interactive session which may not have access to the
the window station "Winsta0". Leave this as NULL to let the system
automatically assign a window station and desktop.

Test runs on Win10 confirm that "Winsta0\Default" still gets selected
when run interactively (e.g., using the GUI or from task scheduler as
an interactive job). This is the same behaviour as now.

The change allows "interactive service" to be used for launching
OpenVPN from non-interactive sessions. For example, when service client
is a non-interactive task from the task scheduler, the default desktop
in a custom window station gets assigned to openvpn.exe.

Note that we already run openvpn.exe in a non-interactive window
station when directly launched by "automatic service".

Github: Fixes OpenVPN/openvpn-gui#626

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20230518173345.2722530-1-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26705.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c