Description of the Problem to resolve:
Currently, when pressing "Play" in Curseforge the Minecraft Launcher is started with the right profile. The problem arises when the Minecraft Launcher is already open. When Curseforge tries to open it, since it's already open the previously opened one stays open and dosen't change profiles, while then new one never appears as it was never opened in the first place after it was seen in the first.
A way to fix this would be to detect is the Minecraft Launcher is open, and if it is then show a pop-up window saying as such with the options to close the launcher or stop the loading of the modpack.