Fix the xdg-open interaction in the appcafe - it needs to be QProcess::execute(cmd) instead of QProcess::startDetached(cmd) in order to let the new process have access to all the current environment variables.