Bug 459986 - Launch feedback doesn't stop properly when launching terminal apps
Summary: Launch feedback doesn't stop properly when launching terminal apps
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-04 19:46 UTC by Nicolas Fella
Modified: 2025-11-30 18:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Fella 2022-10-04 19:46:56 UTC
STEPS TO REPRODUCE
1. Install htop 
2. Lauch htop from Kickoff

OBSERVED RESULT
A Konsole window with htop appears, but the bouncing cursor keeps bouncing for a while until it eventually times out

EXPECTED RESULT
The bouncing cursor stops as soon as the terminal window is there

SOFTWARE/OS VERSIONS
KDE Plasma Version: master (5.25.90)
KDE Frameworks Version: master
Qt Version: 5.15.6-kde

ADDITIONAL INFORMATION

The problem is generic to all apps with Terminal=true

We launch a particular desktop file e.g. htop.desktop, and then wait for a window matching that desktop file to appear, but instead a window with org.kde.konsole for its app_id appears, so we never terminate the startup feedback until some timeout
Comment 1 Nicolas Fella 2022-10-04 19:50:41 UTC
In terms of solutions we could

1. Patch htop et al to have StartupNotify=false
2. Force StartupNotify=false for all terminal apps in KIO::ApplicationLauncherJob
3. Force StartupNotify=false for all terminal apps in KWin

Not great solutions since we would lose the bouncing cursor completely

4. Special-case inside kwin that when we know a terminal app is launched we "wait" for Konsole/the default terminal app instead
Comment 2 Nate Graham 2022-10-10 01:33:10 UTC
4 seems nice.