https://bugs.kde.org/show_bug.cgi?id=487395

Hegyi László <hela...@helaslo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDSINFO                   |REPORTED
         Resolution|WAITINGFORINFO              |---

--- Comment #8 from Hegyi László <hela...@helaslo.net> ---
Hi!

Sorry for the delay, didn't have time until now to perform some measurements,
but here they are.

Steps to reproduce:

Create these two scripts:

#notify-until-success.sh

#!/bin/bash
notify-send "First"
while [ $? -ne 0 ]; do
    notify-send "Retry"
done

#screenshoot.sh

#!/bin/bash
for i in {1..1000}
do
   echo "$i"
   spectacle -b -c
done


Set your clipboard history size to 999

Run screenshoot.sh (note: this will destroy your clipboard history)
This will fill your clipboard history with screenshots, maybe play a video, so
the encoding times will take a bit longer

Start spectacle, set it up in a way that it takes a screenshot at startup, then
copies it the clipboard
Keep spectacle running, open a new shell (so the time command only meassures
the blockage time of plasmashell coming back, without manual closing of
spectacle)

Run the following command:
time  sh -c "spectacle && sleep 0.5 && ./notify-until-success.sh"

This takes a screenshot, and since plasmashell is completly blocked while this
happens, notify send will only return when the tray is responsive again.

Decrease clipboard history size according to your taste, time it takes to run
this will decrase
I have done this for a few datapoints, here they are:
999     0:03:47
950     0:03:32
700     0:02:13
500     0:01:54
250     0:00:50
150     0:00:28
125     0:00:15
75      0:00:01

Time is in Hour:Minute:Seconds

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to