@@ -101,6 +101,7 @@ void ApplicationInfo::setSession(Session* session)
101 if (m_session) {
101 if (m_session) {
102 m_session->setApplication(this);
102 m_session->setApplication(this);
103 m_session->setParent(this);
103 m_session->setParent(this);
104+ m_session->setScreenshot(m_screenshotFileName);
104 SessionManager::singleton()->registerSession(m_session);
105 SessionManager::singleton()->registerSession(m_session);
105 connect(m_session, &Session::surfaceChanged,
106 connect(m_session, &Session::surfaceChanged,
106 this, &ApplicationInfo::onSessionSurfaceChanged);
107 this, &ApplicationInfo::onSessionSurfaceChanged);
@@ -125,21 +126,18 @@ void ApplicationInfo::setScreenshotId(const QString &screenshotId)
125 QString screenshotFileName;
126 QString screenshotFileName;
127 if (screenshotId.endsWith(".svg")) {
128 if (screenshotId.endsWith(".svg")) {
128− screenshotFileName = QString("%1/Dash/graphics/phone/screenshots/%2")
129+ screenshotFileName = QString("qrc:///Unity/Application/screenshots/%2")
129− .arg(qmlDirectory())
130 .arg(screenshotId);
130 .arg(screenshotId);
132− screenshotFileName = QString("%1/Dash/graphics/phone/screenshots/%2@12.png")
132+ screenshotFileName = QString("qrc:///Unity/Application/screenshots/%2@12.png")
133− .arg(qmlDirectory())
134 .arg(screenshotId);
133 .arg(screenshotId);
137 if (screenshotFileName != m_screenshotFileName) {
136 if (screenshotFileName != m_screenshotFileName) {
138 m_screenshotFileName = screenshotFileName;
137 m_screenshotFileName = screenshotFileName;
140− QUrl screenshotUrl = QString("file://%1").arg(m_screenshotFileName);
141 if (m_session) {
139 if (m_session) {
142− m_session->setScreenshot(screenshotUrl);
140+ m_session->setScreenshot(screenshotFileName);