As reported in bug 310674, the Desktop Entry spec says that whitespace surrounding the = sign that separates the key and value in .desktop files should be ignored when interpreting the key and value portions.
That is, all four of these lines should be equivalent:
Type=Application Type =Application Type= Application Type = Application
KConfigIni already handles this for the key (by calling .trim on the value that is assigned to aKey), but neglects to do so for the value. This patch fixes this so that reading .desktop files through KConfigIni should be standards-compliant.