@@ -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()
@@ -101,7 +100,6 @@ void ApplicationInfo::setSession(Session* session)
101100 if (m_session) {
102101 m_session->setApplication(this);
103102 m_session->setParent(this);
104− m_session->setScreenshot(m_screenshotFileName);
105103 SessionManager::singleton()->registerSession(m_session);
106104 connect(m_session, &Session::surfaceChanged,
107105 this, &ApplicationInfo::onSessionSurfaceChanged);