@SaiKo camera-ui have prestart mode as daemon. and many others system apps too. i think you should use python and check active x-windows, not processes.