Hi everyone,
I’m working on an automation workflow where I want my system to automatically set the default browser based on which browser is currently active, following a certain priority order. To do this, I’m checking the list of running processes to see if a browser’s process is active, and then changing the default browser accordingly.
The issue I’m running into is that one of my browsers is called “Dia,” which is only three letters. When I check if the running processes contain “Dia,” it ends up matching a lot of unrelated things, since “dia” is a pretty common substring in process names.
Is there a better way to specifically check if a particular application (with a short or generic name) is running, so I can avoid these false positives? Any tips on how to make this more reliable would be greatly appreciated!
Thanks in advance for your help.