psicopoo
psicopoo

Reputation: 1676

Starting a GUI process from a Python Windows Service

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?

Upvotes: 0

Views: 2029

Answers (2)

patricktokeeffe
patricktokeeffe

Reputation: 1108

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.

Upvotes: 0

David Webb
David Webb

Reputation: 193696

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.

Upvotes: 3

Related Questions