Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/appentry.cpp
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Line(s) | 210 | { | |||
---|---|---|---|---|---|
211 | if (actionId.isEmpty()) { | 211 | if (actionId.isEmpty()) { | ||
212 | quint32 timeStamp = 0; | 212 | quint32 timeStamp = 0; | ||
213 | 213 | | |||
214 | #if HAVE_X11 | 214 | #if HAVE_X11 | ||
215 | if (QX11Info::isPlatformX11()) { | 215 | if (QX11Info::isPlatformX11()) { | ||
216 | timeStamp = QX11Info::appUserTime(); | 216 | timeStamp = QX11Info::appUserTime(); | ||
217 | } | 217 | } | ||
218 | #endif | 218 | #endif | ||
219 | KRun::runService(*m_service, {}, 0, true /* temp URLs forces KRun to not block*/); | 219 | | ||
220 | // TODO Once we depend on KDE Frameworks 5.24 and D1902 is merged, use KRun::runApplication instead | ||||
221 | KRun::runService(*m_service, {}, nullptr, true, {}, KStartupInfo::createNewStartupIdForTimestamp(timeStamp)); | ||||
220 | 222 | | |||
221 | KActivities::ResourceInstance::notifyAccessed(QUrl("applications:" + m_service->storageId()), | 223 | KActivities::ResourceInstance::notifyAccessed(QUrl("applications:" + m_service->storageId()), | ||
222 | "org.kde.plasma.kicker"); | 224 | "org.kde.plasma.kicker"); | ||
223 | 225 | | |||
224 | return true; | 226 | return true; | ||
225 | } | 227 | } | ||
226 | 228 | | |||
227 | QObject *appletInterface = m_owner->rootModel()->property("appletInterface").value<QObject *>(); | 229 | QObject *appletInterface = m_owner->rootModel()->property("appletInterface").value<QObject *>(); | ||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |