@@ -101,6 +101,7 @@ void ApplicationInfo::setSession(Session* session)
101101 if (m_session) {
102102 m_session->setApplication(this);
103103 m_session->setParent(this);
104+ m_session->setScreenshot(m_screenshotFileName);
104105 SessionManager::singleton()->registerSession(m_session);
105106 connect(m_session, &Session::surfaceChanged,
106107 this, &ApplicationInfo::onSessionSurfaceChanged);
@@ -125,21 +126,18 @@ void ApplicationInfo::setScreenshotId(const QString &screenshotId)
125126 QString screenshotFileName;
126127
127128 if (screenshotId.endsWith(".svg")) {
128− screenshotFileName = QString("%1/Dash/graphics/phone/screenshots/%2")
129− .arg(qmlDirectory())
129+ screenshotFileName = QString("qrc:///Unity/Application/screenshots/%2")
130130 .arg(screenshotId);
131131 } else {
132− screenshotFileName = QString("%1/Dash/graphics/phone/screenshots/%2@12.png")
133− .arg(qmlDirectory())
132+ screenshotFileName = QString("qrc:///Unity/Application/screenshots/%2@12.png")
134133 .arg(screenshotId);
135134 }
136135
137136 if (screenshotFileName != m_screenshotFileName) {
138137 m_screenshotFileName = screenshotFileName;
139138
140− QUrl screenshotUrl = QString("file://%1").arg(m_screenshotFileName);
141139 if (m_session) {
142− m_session->setScreenshot(screenshotUrl);
140+ m_session->setScreenshot(screenshotFileName);
143141 }
144142 }
145143}