Install desktop file name on X11 windows
ClosedPublic

Authored by graesslin on Oct 27 2016, 11:39 AM.

Details

Summary

KWindowSystem provides a way to set the desktop file name on X11
windows. As Qt 5.7 also gives us the desktop file name we can export it
to the windows. This brings the advantage that interested parties
(window manager, task manager) can map the window to the desktop file.
Thus take the icon from the desktop file in high quality instead of a
lower quality one exported to the window.

Also it brings a nice advantage for things like kcmshell5. Instead of
having it mapped to kcmshell5 it is mapped to the actual open config
module.

Diff Detail

Repository
R135 Integration for Qt applications in Plasma
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 7697.Oct 27 2016, 11:39 AM
graesslin retitled this revision from to Install desktop file name on X11 windows.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: Plasma, hein.
Restricted Application added a project: Plasma. · View Herald TranscriptOct 27 2016, 11:39 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

Example from kcmshell5 kwinoptions:

_KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) = "/opt/kf5/share/kservices5/kwinoptions.desktop"

hein accepted this revision.Oct 28 2016, 6:55 AM
hein edited edge metadata.
This revision is now accepted and ready to land.Oct 28 2016, 6:55 AM
This revision was automatically updated to reflect the committed changes.