apol added a comment.
In D24454#546320 <https://phabricator.kde.org/D24454#546320>, @davidedmundson wrote: > > Why isn't it managing to send the paste data to klipper before quitting? > > How? > > 1. We announce "I have some new data" to X. > 2. Then klipper sees that, then asks for the data > 3. Then (via X) we get that request and send the data. > > It would be technically possible to tell when 2 has happened (nativeEventFilter for XCB_SELECTION_REQUEST) not sure of a feasible wayland equivalent. I can't see a hook for after stage 3. > > Staying alive seems the most practical solution...but maybe we can make it stay alive for only 30s after the line emoticon copy event or something. Given that on Wayland we don't really have any klipper integration yet, I'd suggest thinking of alternatives later. In the end, this will also improve the startup time on subsequent runs. It's exactly how krunner works, for example. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D24454 To: apol, #plasma, #vdg Cc: hein, #vdg, GB_2, mart, ngraham, davidedmundson, broulik, plasma-devel, LeGast00n, The-Feren-OS-Dev, cblack, konkinartem, ian, jguidon, hannahk, Ghost6, jraleigh, MrPepe, fbampaloukas, squeakypancakes, alexde, IohannesPetros, trickyricky26, ragreen, mglb, crozbo, ndavis, ZrenBot, firef, alexeymin, skadinna, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, aaronhoneycutt, abetts, sebas, apol, ahiemstra, mbohlender