[Task Manager] Understand applications: URLs in Unity launchers
ClosedPublic

Authored by broulik on Oct 16 2017, 9:02 AM.

Details

Summary

It only understood absolute desktop file paths so mapping would fail.

CHANGELOG: Fixed application progress in task manager no longer working

BUG: 385730
FIXED-IN: 5.11.1

Test Plan

I get progress when copying files in Dolphin again
I get a badge in my chat app again
Played around with unitylaunchertest in KNotifications and it seems to work
I didn't actually test apps with absolute launcher URLs as all my apps have a proper desktop file installed

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Oct 16 2017, 9:02 AM
Restricted Application added a project: Plasma. · View Herald TranscriptOct 16 2017, 9:02 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.Oct 16 2017, 9:10 AM
This revision is now accepted and ready to land.Oct 16 2017, 9:10 AM
anthonyfieroni added inline comments.
applets/taskmanager/plugin/smartlaunchers/smartlauncheritem.cpp
141–142

This check should be before init()? m_storageId can be empty but it can has an override one, no?

broulik added inline comments.Oct 16 2017, 10:06 AM
applets/taskmanager/plugin/smartlaunchers/smartlauncheritem.cpp
141–142

unityMappingRules().value(m_storageId); ← if m_storageId is empty, this call makes no sense?

broulik added inline comments.Oct 16 2017, 10:11 AM
applets/taskmanager/plugin/smartlaunchers/smartlauncheritem.cpp
141–142

But yeah I guess I'll move it to before init since the mapping rule might overwrite it to be empty

This revision was automatically updated to reflect the committed changes.