FaithLife-Community / LogosLinuxInstaller

A Python application that helps install and maintain FaithLife's Logos Bible (Verbum) Software on Linux through Wine.
MIT License
35 stars 10 forks source link

Track Logos PID #137

Closed thw26 closed 1 month ago

thw26 commented 4 months ago

If we track the main PID for Logos once it is running, we can put additional safeguards in to make sure commands can't be run while Logos is running. We can also add commands like stop Logos/restart Logos.

This may be best accomplished by making a system.popen_command, like system.run_command.

thw26 commented 2 months ago

cf. #164

thw26 commented 2 months ago

This won't work unless we use a series of commands to find the Logos PID. When Logos launches, it creates its splash screen. As soon as that loads, it creates the login window, thus changing PID, and again changing PID on logging in. We would need to find a way to track these PIDs more efficiently.