0

I am creating Windows service class in Python that will eventually display a Window when certain conditions are met. Since (as I understand it) services cannot have GUIs, I'm trying to start up a GUI in a seperate process (using subprocess.Popen) when the conditions are right. This isn't working, presumably because the child process has the same privileges as the service.

So how do I start a process from a Python Windows Service that has the ability to display GUIs on the screen?

psicopoo
  • 1,576
  • 1
  • 12
  • 20

2 Answers2

3

If you give your Service the Allow service to interact with desktop permission it will be able to create windows without the need to launch a subprocess.

David Webb
  • 190,537
  • 57
  • 313
  • 299
0

As mentioned in this answer, you may have to (eventually) transition to a client-server model since Windows Vista and later no longer support direct interaction with users.

Community
  • 1
  • 1
patricktokeeffe
  • 1,058
  • 1
  • 11
  • 21