Is there a way for an application to advertise progress updates (perhaps via D-Bus)?

Windows has this thing where applications can show progress in the task bar like this:


As an application developer, does KDE offer a way for an application to advertise that it has started a long-running process and post progress updates (perhaps via D-Bus)?

Yes, a bunch of KDE applications support this, like Dolphin or the Plasma Integration Firefox extension. Afaik it’s done using an old protocol borrowed from Unity: Unity/LauncherAPI - Ubuntu Wiki

I am not a C++ developer but found this stackoverflow question KDE Taskbar Progress and this small test knotifications/tests/unitylaunchertest.cpp at master · KDE/knotifications · GitHub that looks exactly what you are trying to do plus other taskbar status interactions

1 Like

Thank you for the link!