Change from running ". ~/.xprofile" to "sh ~/.xprofile" because ~/.xprofile does not have the #!/bin/sh line at the top to detect