title: How to trigger a function when a certain application launches in Python
body: <p>Assuming a python script running in the background, how can I trigger a function inside the script when I launched a certain application/software on my computer (Linux). </p>
  
  <p>I googled a lot about this, but couldn't find a solution! </p>
  
  <p>Thank you in advance.</p>