This add-on allows detecting when a game is running irregardless of how you started it. This means that Playnite will be able to tell your game is running even if you started it from a different client.
Trying to optimize the way it checks for running process. Feel free to contribute.