Controlling Windows and Linux in the same test case

Thank you for the suggestions. I’m really new to this so pardon me if I have more general questions.

Do any of these suggestions work if the Linux app in the viewer changes with every click? As in new set of buttons appear after a click. Also, does the viewer window have to have a specific size and location during each run?