[Telegram] Don't wait for Telegram to be closed
ClosedPublic

Authored by nicolasfella on Jul 14 2018, 5:56 AM.

Details

Summary

Unlike e.g. kdeconnect-cli telegram stays open after sharing. The Job lives as long as telegram is running,
although the exit code is not interesting. Another window with a useless progress bar is open all the time,
which is especially annoying when using a tiling window manager. This patch waits shortly and stops the job
while keeping telegram open. Directly stopping the job would cause telegram not to open at all. The waiting
time is somewhat ad-hoc, but works well in my case.

Test Plan

Share something via Telegram. See progress window open shortly and close again. Telegram stays
open, ready to share

Diff Detail

Repository
R495 Purpose Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nicolasfella created this revision.Jul 14 2018, 5:56 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 14 2018, 5:56 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
nicolasfella requested review of this revision.Jul 14 2018, 5:56 AM
apol accepted this revision.Jul 16 2018, 12:06 PM

I guess this only happens if Telegram wasn't running already.

This revision is now accepted and ready to land.Jul 16 2018, 12:06 PM
This revision was automatically updated to reflect the committed changes.