Support default action, priority hints, set desktop-entry
ClosedPublic

Authored by broulik on Apr 18 2019, 8:20 AM.

Details

Summary

This adds support for default actions and priority hints, both of which we support in KNotification these days.
Also send along the desktop-entry of the issuing application so the notification server can identify where the notification is actually coming from.

Test Plan

Tested with Konversation flatpak, now got org.kde.konversation as desktop-entry
Didn't test the default action or priority stuff as I couldn't figure out how to build that portal tester with more recent frameworks
Depends on D20648
This uses Frameworks 5.58 APIs which isn't released yet but Plasma 5.16 will depend on

Diff Detail

Repository
R838 Flatpak Support: KDE Portal for XDG 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.Apr 18 2019, 8:20 AM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 18 2019, 8:20 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Apr 18 2019, 8:20 AM
broulik edited the test plan for this revision. (Show Details)
jgrulich accepted this revision.Apr 18 2019, 10:41 AM

Works for me. I tested both like the default action and urgency.

This revision is now accepted and ready to land.Apr 18 2019, 10:41 AM
This revision was automatically updated to reflect the committed changes.