Not sure about openUrl, but I guess if you use QProcess to launch a app, there is a way - QProcess::setEnvironment