If the ~/.xprofile exists, create and run a simple script file to ensure that the QProcess runs the commands in sequence. Fall back on the old seperate QProcess commands if it could not create the script file.