@@ -73,8 +73,7 @@ void ApplicationInfo::createSession()
7373{
7474 if (m_session || state() == ApplicationInfo::Stopped) { return; }
7575
76− QUrl screenshotUrl = QString("file://%1").arg(m_screenshotFileName);
77− setSession(SessionManager::singleton()->createSession(appId(), screenshotUrl));
76+ setSession(SessionManager::singleton()->createSession(appId(), m_screenshotFileName));
7877}
7978
8079void ApplicationInfo::destroySession()
@@ -125,21 +124,18 @@ void ApplicationInfo::setScreenshotId(const QString &screenshotId)
125124 QString screenshotFileName;
126125
127126 if (screenshotId.endsWith(".svg")) {
128− screenshotFileName = QString("%1/Dash/graphics/phone/screenshots/%2")
129− .arg(qmlDirectory())
127+ screenshotFileName = QString("qrc:///Unity/Application/screenshots/%2")
130128 .arg(screenshotId);
131129 } else {
132− screenshotFileName = QString("%1/Dash/graphics/phone/screenshots/%2@12.png")
133− .arg(qmlDirectory())
130+ screenshotFileName = QString("qrc:///Unity/Application/screenshots/%2@12.png")
134131 .arg(screenshotId);
135132 }
136133
137134 if (screenshotFileName != m_screenshotFileName) {
138135 m_screenshotFileName = screenshotFileName;
139136
140− QUrl screenshotUrl = QString("file://%1").arg(m_screenshotFileName);
141137 if (m_session) {
142− m_session->setScreenshot(screenshotUrl);
138+ m_session->setScreenshot(screenshotFileName);
143139 }
144140 }
145141}