<div dir="ltr"><div><div><div><div><div><div><div><div>Hello CMake developpers.<br><br></div>We are using execute_process in some of our tests for a Qt based application (ParaView)<br></div>However, on windows, the GUI does not show up and that caused some problems for rendering.<br><br></div>We have investigated the problem, and it looks like execute_process on windows is based on CreateProcess [1], But CreateProcess cannot interact directly with the user desktop as a GUI would need.<br>It has to do with permissions and system environnement, see the relevant discussions [2], [3] and [4].<br></div><br></div>So here is my question : <br>Is there a way, using cmake, to start a gui command on windows and have the gui shows up ?<br></div>If not, is this intended ? Could we have this feature ?<br><br></div>Thanks for any hindsight !<br><br></div> Best,<br><div><div><div><div><div><div><div><div><div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Mathieu Westphal<br><br>[1] : <a href="https://github.com/Kitware/KWStyle/blob/c541ae8f81d7ca739b3c03138d430cb3f41ed1c6/Utilities/KWSys/ProcessWin32.c#L1844">https://github.com/Kitware/KWStyle/blob/c541ae8f81d7ca739b3c03138d430cb3f41ed1c6/Utilities/KWSys/ProcessWin32.c#L1844</a><br><br>[2] : <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/24cd0f16-c5c7-4574-ac27-8e785bdf6bad/createprocess-creates-the-new-process-but-the-gui-is-not-displayed?forum=vcgeneral">https://social.msdn.microsoft.com/Forums/vstudio/en-US/24cd0f16-c5c7-4574-ac27-8e785bdf6bad/createprocess-creates-the-new-process-but-the-gui-is-not-displayed?forum=vcgeneral</a><br><br>[3] : <a href="https://stackoverflow.com/questions/948417/how-to-launch-a-gui-program-in-a-windows-service?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa">https://stackoverflow.com/questions/948417/how-to-launch-a-gui-program-in-a-windows-service?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa</a><br><br>[4] : <a href="https://stackoverflow.com/questions/267838/how-can-a-windows-service-execute-a-gui-application">https://stackoverflow.com/questions/267838/how-can-a-windows-service-execute-a-gui-application</a><br></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div>