Change default run configuration in Qt Creator
-
When I create a new WebAssembly project in Qt Creator, the default run configuration runs the following command:
C:/Qt/emsdk/upstream/emscripten/emrun.py --browser firefox --port "<port>" --no_emrun_detect --serve_after_close C:/Path/To/Project/outputfile.html
When Qt Creator tries to run this I get an error saying "No executable specified", probably because it's trying to run a .py file when it expects a .exe file. I've figured out that I can solve this issue by Projects > Run and creating a custom run configuration telling it to run
python.exe C:/Qt/emsdk/upstream/emscripten/emrun.py --browser firefox --port "<port>" --no_emrun_detect --serve_after_close C:/Path/To/Project/outputfile.html
(this is the same as the default one except I explicitly tell it to open the .py file with python.exe)
When I do this for a project, it saves those settings for that project and I don't get any more issues with that specific project. The problem is that this setting is only saved for one project at a time, so each time I create a new WebAssembly project I need to remember to do this again.
It would be nice to find a way to change the default run configuration so that it automatically adds
python.exe
at the beginning of the default run configuration for every new WebAssembly project, so that I don't manually have to change the run configuration every time I create a new project. However, I can't find such a setting? Is this possible? And if so, how do I do it?