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

            Bug ID: 468440
           Summary: Global Application shortcuts are slower than they
                    could be
    Classification: I don't know
           Product: kde
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-b...@kde.org
          Reporter: aleksey.kla...@gmail.com
  Target Milestone: ---

SUMMARY

Global Application shortcuts (like `M+.` for emojier) add about 100ms delay in
comparison to pinning the app in taskbar and using `Win+number` shortcut. That
is, launching emojier with `M+.` is noticeably slower for me than pinning it
and launching a new instance via `Win+1`

STEPS TO REPRODUCE
The delay is visible with a nacked eye, especially if you compare two kinds of
shortcuts (xclock is a guinea pig). But I also confirmd that with time
measurments using these two scripts

click.sh logs current time and uses ydotool to send `F4` shortcut

```
#!/bin/sh
date +%s.%N >> "/home/matklad/tmp/log.txt"
ydotool key 62:1 62:0
```

clock.sh logs current time

```
#!/bin/sh
date +%s.%N >> "/home/matklad/tmp/log.txt"
echo "\n" >>   "/home/matklad/tmp/log.txt"
```

If I bind F4 to global script shorcturt

```
[clock.sh.desktop]
_k_friendly_name=clock.sh
_launch=F4,none,/home/matklad/tmp/clock.sh
```

the result looks like this

```
1681339791.367891270
1681339791.488687436
\n
1681339792.845658459
1681339792.964949291
\n
1681339793.893609292
1681339794.015043447
```

That's about 120ms of delay between click.sh and clock.sh

If I find F4 to task manager

```
activate task manager entry 1
```

the result looks like this

```
1681340227.988185176
1681340228.001887438
\n
1681340229.466190483
1681340229.482717773
\n
1681340230.419816890
1681340230.437328642
```

about 20ms of delay, 100ms faster than the global shortcut

SOFTWARE/OS VERSIONS

Operating System: NixOS 23.05
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8
Kernel Version: 6.2.10 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

Related issue: https://bugs.kde.org/show_bug.cgi?id=468328

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

Reply via email to