Bug 514893 - Support negative launcher counts
Summary: Support negative launcher counts
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 6.4.5
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-21 09:24 UTC by Archisman Panigrahi
Modified: 2026-01-21 14:32 UTC (History)
2 users (show)

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


Attachments
A "-" sign is shown in KDE (20.04 KB, image/png)
2026-01-21 09:24 UTC, Archisman Panigrahi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Archisman Panigrahi 2026-01-21 09:24:02 UTC
Created attachment 188745 [details]
A "-" sign is shown in KDE

SUMMARY
I am using Unity’s launcher count API to show temperature from an weather app in the launcher.
When the temperature is negative, KDE just shows a -ve sign (see attached image).

In comparison, Plank dock correctly shows the negative number (see https://discuss-cdn.kde.org/uploads/default/original/3X/c/8/c8b7b924699c33f0c8dee10adf7b8f955714e1c2.png ). For details see https://discuss.kde.org/t/kde-shows-a-ve-sign-witout-any-numbers-when-the-unity-launcher-count-is-negative/32620?u=archisman

STEPS TO REPRODUCE
1. Make some way to get a negative launcher count (e.g. by setting location at a cold place with typhoon weather app, or by running the python code at https://discuss.kde.org/t/kde-shows-a-ve-sign-witout-any-numbers-when-the-unity-launcher-count-is-negative/32620?u=archisman )

OBSERVED RESULT

Only a "-" sign is shown.

EXPECTED RESULT

The negative integer number should be shown

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 25.10
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.17.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION

The issue occurs because of this code https://invent.kde.org/plasma/plasma-desktop/-/blob/master/applets/taskmanager/qml/Badge.qml#L51. Can we remove this code enable negative counts here?
Comment 1 Archisman Panigrahi 2026-01-21 09:33:29 UTC
Here is the merge request that will fix this bug https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3468
Comment 2 David Edmundson 2026-01-21 11:14:53 UTC
Git commit 80d264ca374108f9f3675912d54ac154779c3401 by David Edmundson, on behalf of Archisman Panigrahi.
Committed on 21/01/2026 at 11:14.
Pushed by davidedmundson into branch 'master'.

applets/taskmanager: Allow negative launcher counts

M  +1    -3    applets/taskmanager/qml/Badge.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/80d264ca374108f9f3675912d54ac154779c3401