Wrong bundledir path in application scripts automatically generated by CMake
Summary
When using an application with an installer and launching it on the XP laptop, the generated script to launch the application crashes because of a wrong bundledir
.
Steps to reproduce
- Use the XP laptop
- Unzip an application installer in a folder containing a blank space
- Try to directly launch the application through the generated script
- You should see an error
Dev environment
- OS: All (Note: this has been reproduced on windows while testing the sdk installer.)
- Build type:
release
- Commit:
dev
What is the current bug behavior?
- Failed to launch the application when the path contains the a blank space
What is the expected correct behavior?
- Succeed to launch the application when the path contains the a blank space
Relevant logs and/or screenshots
/home/project/XP/XP 2019_01_23 - Demo France24/Binairies/project-0.10-linux_x86_64/bin
/home/project/XP/XP 2019_01_23 - Demo France24/Binairies/project-0.10-linux_x86_64/share/sight
the argument ('/home/project/XP/XP 2019_01_23 - Demo France24/Binairies/project-0.10-linux_x86_64/share/sight/project-0.10/profile.xml') for option '--profile' is invalid
Possible fixes
- Escape the blank spaces in the path when launching the application through the generated scripts.