Ticket #13 (closed defect: fixed)
Editing a PC inserts incorrect spaces into argument
| Reported by: | andreas.faerber@… | Owned by: | mike |
|---|---|---|---|
| Priority: | normal | Milestone: | Q-0.9.1aX |
| Component: | editPC | Version: | Q-0.9.0a89 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Q relies on the guest command line arguments in the configuration file being separated by single whitespace characters.
This is problematic because editing a PC without manual QEMU parameters adds a whitespace character before such an empty string, leading to a constantly growing file and inability to launch the guest.
An initial patch was provided to start tackling this.
But additionally, Q does not recognize every single-token parameter and tracking those is a tedious task. Instead, once initial fixes are in place, the argument parsing should be revisited to no longer rely on this string-explosion based on whitespace character, i.e. tokenizing quoted and unquoted strings, ignoring any combination of whitespace characters in between.

