@@ -73,8 +73,7 @@ void ApplicationInfo::createSession()
74 if (m_session || state() == ApplicationInfo::Stopped) { return; }
74 if (m_session || state() == ApplicationInfo::Stopped) { return; }
76− QUrl screenshotUrl = QString("file://%1").arg(m_screenshotFileName);
77− setSession(SessionManager::singleton()->createSession(appId(), screenshotUrl));
76+ setSession(SessionManager::singleton()->createSession(appId(), m_screenshotFileName));
80void ApplicationInfo::destroySession()
79void ApplicationInfo::destroySession()
@@ -125,21 +124,18 @@ void ApplicationInfo::setScreenshotId(const QString &screenshotId)
125 QString screenshotFileName;
124 QString screenshotFileName;
127 if (screenshotId.endsWith(".svg")) {
126 if (screenshotId.endsWith(".svg")) {
128− screenshotFileName = QString("%1/Dash/graphics/phone/screenshots/%2")
127+ screenshotFileName = QString("qrc:///Unity/Application/screenshots/%2")
129− .arg(qmlDirectory())
130 .arg(screenshotId);
128 .arg(screenshotId);
132− screenshotFileName = QString("%1/Dash/graphics/phone/screenshots/%2@12.png")
130+ screenshotFileName = QString("qrc:///Unity/Application/screenshots/%2@12.png")
133− .arg(qmlDirectory())
134 .arg(screenshotId);
131 .arg(screenshotId);
137 if (screenshotFileName != m_screenshotFileName) {
134 if (screenshotFileName != m_screenshotFileName) {
138 m_screenshotFileName = screenshotFileName;
135 m_screenshotFileName = screenshotFileName;
140− QUrl screenshotUrl = QString("file://%1").arg(m_screenshotFileName);
141 if (m_session) {
137 if (m_session) {
142− m_session->setScreenshot(screenshotUrl);
138+ m_session->setScreenshot(screenshotFileName);