Maemo: Set DISPLAY variable before running remote executable.

This commit is contained in:
ck
2010-05-12 17:21:38 +02:00
parent 64d65fb698
commit ba3b881ffc

View File

@@ -330,7 +330,7 @@ const QString AbstractMaemoRunControl::targetCmdLinePrefix() const
const QString &installPrefix = m_needsInstall const QString &installPrefix = m_needsInstall
? remoteInstallCommand() + QLatin1String(" && ") ? remoteInstallCommand() + QLatin1String(" && ")
: QString(); : QString();
return QString::fromLocal8Bit("%1%2 chmod a+x %3 && source /etc/profile && ") return QString::fromLocal8Bit("%1%2 chmod a+x %3 && source /etc/profile && DISPLAY=:0.0 ")
.arg(installPrefix).arg(remoteSudo()).arg(executableFilePathOnTarget()); .arg(installPrefix).arg(remoteSudo()).arg(executableFilePathOnTarget());
} }