8000 [Feature Request] Notification badges on dock app icons · Issue #10124 · linuxmint/cinnamon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Feature Request] Notification badges on dock app icons #10124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Cantello opened this issue May 31, 2021 &mi 8000 ddot; 87 comments · May be fixed by #12569
Open

[Feature Request] Notification badges on dock app icons #10124

Cantello opened this issue May 31, 2021 · 87 comments · May be fixed by #12569

Comments

@Cantello
Copy link
Cantello commented May 31, 2021

In Cinnamon Desktop, apps that usually work with notification badges for unobtrusive indication of e.g. unread messages or ongoing processes (see screenshot below) do not show these badges. Tried with Mailspring, Discord & Gmail via nativefier. With Ubuntu/GNOME they do work.

image

My current configuration (some days ago) is as follows, in case it is important: https://termbin.com/qt8s

It would be great if these indicators could be implemented as in my regular workflow, notifications tend to be dismissed whereas icon badges stay visible.

@Belaial
Copy link
Belaial commented Mar 6, 2023

Been searching far and wide for a solution to this but can only find this feature request, hopefully this is something that can be implemented in the future. I think this will become more important now when apps like Teams have moved to a PWA (Progressive Web App) which does not have it's own application icon tracking notifications, so today if you are using Teams PWA you need to open it up now and then to see if you have unread messages, notifications are displayed in the regular Cinnamon notifications but since everything is shown there the Teams PWA notifications are not clearly visible like they would be if the PWA icon would display a counter for unread messages.

(Just using Teams as an example, this would also be very handy for other applications)

@Secret-chest
Copy link
Contributor

Hope it's toggleable.

@Mahi
Copy link
Mahi commented Mar 22, 2023

Literally the only reason I switched away from Cinnamon. Windows has this, Mac has this, Gnome has this, Android has this, even my car has this! It's crazy to me that Cinnamon doesn't have it yet.

@kaz-49
Copy link
kaz-49 commented May 13, 2023

Bump
Would also be nice if they appeared flashing on other workspaces as well, like in windows. Makes handling notifications for lots of workspaces much easier.

@eisbehr
Copy link
eisbehr commented Jul 14, 2023

This is a feature common across all the big contemporary desktop environments (across operating systems), applications simply assume this feature exists for notifying the user about changes. Implementing it should have elevated priority.

@Gr3q
Copy link
Contributor
Gr3q commented Jul 17, 2023

dash-to-dock has implementations for both the Unity API and a fallback where it counts the notifications associated with the app. I'd be happy to port them.

The problem is that we already have badges that show the open window count, so someone needs to come up with a way to show both of them I can't continue. I know dash-to-dock shows the window count with dots, I don't know how Windows does it.

@LunarWatcher
Copy link

Windows doesn't show the full count IIRC. If there's multiple windows, it shows a short of overlap-effect. Windows 11 apparently has a dot too, according to a quick Google search, but it isn't used to reflect the count. It just shows that there are multiple windows, not many, from what I can tell. I've never used Win11 though (and I have no desire to), so might be wrong. But there is only one dot for three windows in an image I found on google, so it seems unlikely that it's used to count

@eisbehr
Copy link
eisbehr commented Jul 17, 2023

Windows 10 visually suggest a "stack" of windows with no number given.
image
Left when unselected, right when selected

@Secret-chest
Copy link
Contributor

Another option would be a 3-dots icon in the bottom-right, or just moving the count there and styling it differently

@fredcw
Copy link
Contributor
fredcw commented Jul 17, 2023

If the window count is a black circle on the top left, why can't the notification count be a red circle on the top right?

@dcolascione
Copy link

Just put the badge and window count in separate corners. Seems simple to me.

@Belaial
Copy link
Belaial commented Jul 18, 2023

Just put the badge and window count in separate corners. Seems simple to me.

Sounds like a good idea to me, also color code them? Blue for window stack and red for notification counter maybe? Hopefully the user could be allowed to change the color as well if it's not to much hassle, no developer myself so only coming with suggestions.

@Gr3q
Copy link
Contributor
Gr3q commented Jul 18, 2023

image

That...seems like a bad design for me, 2 badges on 1 icon? Also look at my taskbar, do you think it will fit?

@Gr3q
Copy link
Contributor
Gr3q commented Jul 18, 2023

Maybe the line could be changed to dots on the bottom?

@Belaial
Copy link
Belaial commented Jul 19, 2023

image

That...seems like a bad design for me, 2 badges on 1 icon? Also look at my taskbar, do you think it will fit?

Sure on icon's that small it would certainly be very hard to fit in 2 counters / "dots", I guess everything could be made smaller but at some point it becomes unreadable I guess, right now I don't have a good suggestion how to implement it and have it work on icons that small.

Maybe anchor points for the notification dots could be configured to be in all 4 corners? Then you could have window count in bottom left and notification count in upper right?

@dcolascione
Copy link

If there has to be only one number, I'd rather it be the badge count. I don't think the precise number of windows is all that useful as long as I can see the difference between zero, one, and more. OTOH, I have very different reactions to having one Slack message and having one hundred.

@Belaial
Copy link
Belaial commented Jul 26, 2023

If there has to be only one number, I'd rather it be the badge count. I don't think the precise number of windows is all that useful as long as I can see the difference between zero, one, and more. OTOH, I have very different reactions to having one Slack message and having one hundred.

I agree, notifications are at least to me much more important than how many windows there are.

@thepastelsuit
Copy link

+1 for not needing a window count (although I do think the Windows solution to showing that there are multiple windows under one icon is fairly elegant). It's much more intuitive to show me unread message count or other status badges.

@Secret-chest
Copy link
Contributor

Just put both and make both toggleable!

@ivanxex
Copy link
ivanxex commented Nov 6, 2023

Notification badges is really missing feature. Hope it'll be available in future versions of cinnamon.

@Reno-Sifana
Copy link

image

That...seems like a bad design for me, 2 badges on 1 icon? Also look at my taskbar, do you think it will fit?

Lol. In KDE Plasma 5.27.10 (Latest Version) unread message counter should like that and readable in Cinnamon Desktop Environment.
Screenshot_20231213_191616
(in the screenshot above shows Unread Message counter on Telegram desktop says 241 message unread. click to enlarge).
Notes: as i recall it's need libunity as dependency to work properly.

@tlotr
Copy link
tlotr commented Jan 24, 2024

If the badge is not possible then maybe highlight the app icon in the taskbar with a background colour indicating that there are unread messages that needs to be checked. Anything visual to differenciate those apps.

@LazyWings
Copy link

Hi, is there any update on this? This has been a request for a while and as others have said this is pretty much a necessary feature with the direction apps are going. It's really important to be able to see notifications when they appear, and this has been a requested feature for a good few years now. Agree with all others who have said badges are more important than window count, genuinely have never had a use case where I've needed to know exactly how many windows are open. Also agree with comment just before me saying that even just a highlight to say there's activity if the graphic is the limitation.

@Gr3q
Copy link
Contributor
Gr3q commented Feb 2, 2024

Haven't had time to implement it, although it probably shouldn't take long as long as:

This will probably be confusing for the majority of users first, so I also need to change how the badge looks.

Still, I don't know when I have time to get around to it.

@Secret-chest
Copy link
Contributor

Don't remove the window count!

@LazyWings
Copy link

Haven't had time to implement it, although it probably shouldn't take long as long as:

This will probably be confusing for the majority of users first, so I also need to change how the badge looks.

Still, I don't know when I have time to get around to it.

Thank you - really appreciate it! If there are people concerned about losing the window count then some sort of toggle is the way forward longer term, or even a manual fix to apply badges as a stopgap might work. Badges are a pretty core feature, but don't want that to lead to worse experiences for people who like how it is now. That being said, I'm sorry to say I think it will be a minority that prefer window count to badges, especially since that's the standard with most other systems now.

@tlotr
Copy link
tlotr commented Feb 21, 2024

Haven't had time to implement it, although it probably shouldn't take long as long as:

This will probably be confusing for the majority of users first, so I also need to change how the badge looks.

Still, I don't know when I have time to get around to it.

Thank you Gr3q, the only reason I have moved back to Windows is because of this feature not available in Linux Mint. If I am AFK for sometime and when I am back looking at the apps in the taskbar it is not possible to see if there were messages that have been sent to me while I was away. I use Google Chat and Slack. If this is implemented that would be awesome.

@MSBlueVn
Copy link

Don't remove the window count!

I agree, move it to another place on the icon, like bottom right, and add the notifications on top left where the window count is.

@Icey-Wicey
Copy link
Icey-Wicey commented Apr 18, 2025

The lack of badge notifications is currently the main thing preventing me from using Cinnamon. So much modern day software relies on this, and it's far less obtrusive than pop-up notifications. Especially in the case of communication software, where all you need is a little indicator that you've received a message; instead, in Cinnamon, all you can do is either forego any indicator and hope you don't miss anything urgent for hours or be spammed with a wall of pop-ups when someone starts messaging you.

I feel like badge notifications should be high priority. The lack of it makes Cinnamon a hassle or downright unusable for so many people.

@memarkham303
Copy link
memarkham303 commented Apr 18, 2025 via email

@Kruemmelkeks
Copy link

Adding another vote! This is one of the only things that's missing for me.

@ask-compu
Copy link

honestly i think cinnamon is one of the only desktops that is missing this feature

@fredcw
Copy link
Contributor
fredcw commented Apr 19, 2025

@Icey-Wicey @memarkham303 @Kruemmelkeks @ask-compu There is an open PR for this. In the meantime, you could test the modified gwl applet I linked above if you like.

@Kruemmelkeks
Copy link
Kruemmelkeks commented Apr 19, 2025

@Icey-Wicey @memarkham303 @Kruemmelkeks @ask-compu There is an open PR for this. In the meantime, you could test the modified gwl applet I linked above if you like.

Thanks for the heads up, I noticed the PR after my comment :) I already set up your modified applet.
I tried Thunderbird, Discord, Signal and Telegram Desktop clients so far. Thunderbird notfications seems to work fine. But I don't get any badges for Discord, Signal and Telegram messages. But this might also be tied to the apps somehow, as their behaviour is not consistent:

For Signal I receive the message popup on the lower right corner, and I also get an entry in my notifications (bell symbol next to the clock, popup is already dismissed here). But the app symbol is not highlighted with the red background, and no badge is shown.
Image

For Telegram I do get the popup as you can see, but no entry in the notification center (bell symbol right next to the clock does not appear). But the app is highlighted with red background.
Image

Discord is pretty much identical to Signal. I do get the notification in the notification center (bell on the very right side), the Discord icon in the applet section shows the red dot for an unread message, but no notification badge on the window itself.
Image

Not really sure why these applications behave like they do and if something might be related to the missing notifcation badge. But that's a least not what I expected.

//EDIT: Fixed typo.

//EDIT2: Just noticed I could set the option in to highlight the app in Signal itself.

@ask-compu
Copy link

@Icey-Wicey @memarkham303 @Kruemmelkeks @ask-compu There is an open PR for this. In the meantime, you could test the modified gwl applet I linked above if you like.

a bit worried testing applets could make my cinnamon desktop unstable

@ask-compu
Copy link

@Icey-Wicey @memarkham303 @Kruemmelkeks @ask-compu There is an open PR for this. In the meantime, you could test the modified gwl applet I linked above if you like.

Thanks for the heads up, I noticed the PR after my comment :) I already set up your modified applet. I tried Thunderbird, Discord, Signal and Telegram Desktop clients so far. Thunderbird notfications seems to work fine. But I don't get any badges for Discord, Signal and Telegram messages. But this might also be tied to the apps somehow, as their behaviour is not consistent:

For Signal I receive the message popup on the lower right corner, and I also get an entry in my notifications (bell symbol next to the clock, popup is already dismissed here). But the app symbol is not highlighted with the red background, and no badge is shown. Image

For Telegram I do get the popup as you can see, but no entry in the notification center (bell symbol right next to the clock does not appear). But the app is highlighted with red background. Image

Discord is pretty much identical to Signal. I do get the notification in the notification center (bell on the very right side), the Discord icon in the applet section shows the red dot for an unread message, but no notification badge on the window itself. Image

Not really sure why these applications behave like they do and if something might be related to the missing notifcation badge. But that's a least not what I expected.

//EDIT: Fixed typo.

//EDIT2: Just noticed I could set the option in to highlight the app in Signal itself.

i can confirm telegram and discord show notification badges on KDE, so the apps themselves support it

@fredcw
Copy link
Contributor
fredcw commented Apr 20, 2025

@Kruemmelkeks Sorry, I forgot to mention that you need to restart cinnamon as well (I've edited my comment). The badges on the app icons show the standard desktops notifications, same as the notifications applet (bell icon). As soon as you click on the app icon with the badge, the badge will disappear but will still show in the notifications applet (bell icon).

@Kruemmelkeks
Copy link
Kruemmelkeks commented Apr 20, 2025

@Kruemmelkeks Sorry, I forgot to mention that you need to restart cinnamon as well (I've edited my comment). The badges on the app icons show the standard desktops notifications, same as the notifications applet (bell icon). As soon as you click on the app icon with the badge, the badge will disappear but will still show in the notifications applet (bell icon).

Thanks! I acutally tried restarting Cinnamon yesterday, as one other user mentioned it had to be done. Tried again now after the computer was shut down for the night. But still no luck. Thunderbird is fine, just as I mentioned before. But neither Telegram nor Signal show any badges. Didn't test Discord again.
Image

The Telegram notifications seem to work differently than Signal and Discord. There is still not entry in the notification center, and the popup remains open until I manually dismiss it - other notifications simply get dismissed after the timeout. Tried both the telegram notification setting and using the native system notifications (see screenshot below). So I don't know what's up with that one, it might be app-related.

Image

Anything else I could provide to help digging into that?

//EDIT: Just noticed Vivaldi does not have any badges as well when a download finishes in the background. The notification goes into the notification center correctly.

@fredcw
Copy link
Contributor
fredcw commented Apr 20, 2025

@Kruemmelkeks Looks like Telegram uses it's own notification system so those notifications won't register with cinnamon's notification system. I tried vivaldi and discord app, they both seem to work OK for me, so not sure what's happening there. I can't test signal but you say the notification appears at bottom right, if notifications normally appear at top right, then signal would be using it's own notification system as well. This would also seem to be the case because in your previous screenshot, the signal panel icon is highlighted with red background. I can't test telegram either so I don't know why "Use native notifications" isn't working there.

@ask-compu
Copy link

@Kruemmelkeks Sorry, I forgot to mention that you need to restart cinnamon as well (I've edited my comment). The badges on the app icons show the standard desktops notifications, same as the notifications applet (bell icon). As soon as you click on the app icon with the badge, the badge will disappear but will still show in the notifications applet (bell icon).

why not use the existing API that every other desktop uses for the notification badges?

@Kruemmelkeks
Copy link

@Kruemmelkeks Looks like Telegram uses it's own notification system so those notifications won't register with cinnamon's notification system. I tried vivaldi and discord app, they both seem to work OK for me, so not sure what's happening there. I can't test signal but you say the notification appears at bottom right, if notifications normally appear at top right, then signal would be using it's own notification system as well. This would also seem to be the case because in your previous screenshot, the signal panel icon is highlighted with red background. I can't test telegram either so I don't know why "Use native notifications" isn't working there.

I definetly think you are right about Telegram, they seem to be using their own implementation. And the notifications are always on the bottom right on my system, that's how I configured it. So that's fine.

But I'm not sure if I understand your response correctly. I thought the Applet simply takes the notification from the notification center and transforms it into a badge, which is then displayed on the app icon. So when a notification appears in the notification applet, it should be good. Or does it work differently "under the hood"?

@fredcw
Copy link
Contributor
fredcw commented Apr 20, 2025

@ask-compu Yes, cinnamon does use the same XDG desktop notifications spec that all the other linux DEs use. Some apps will do their own thing and display their own notifications (Telegram, steam, etc) but there's no way for the DE to know about these because they're not part of any standard.

@fredcw
Copy link
Contributor
fredcw commented Apr 20, 2025

@Kruemmelkeks Yes, you're right. Notifications are handled by cinnamon in the background (/usr/share/cinnamon/js/ui/notificationDaemon.js), it listens for notification requests vis dbus, creates the notification, and displays it on the screen for a few seconds. It then emits the signal notify-applet-update which is picked up by the notifications applet (notifications@cinnamon.org) which then displays a bell icon on the panel, assuming the notification hasn't already been dismissed. The grouped-window-list applet also listens for this same signal and then gets the name of the app that sent it and displays the badge on that app's icon in the panel.

@ask-compu
Copy link

@ask-compu Yes, cinnamon does use the same XDG desktop notifications spec that all the other linux DEs use. Some apps will do their own thing and display their own notifications (Telegram, steam, etc) but there's no way for the DE to know about these because they're not part of any standard.

that's not the same thing, in KDE u can have no notifications in the notification tray and still have notification badges for unread messages, the badges don't just count notifications, there's an API to let the program set the number

@Kruemmelkeks
Copy link

@Kruemmelkeks Yes, you're right. Notifications are handled by cinnamon in the background (/usr/share/cinnamon/js/ui/notificationDaemon.js), it listens for notification requests vis dbus, creates the notification, and displays it on the screen for a few seconds. It then emits the signal notify-applet-update which is picked up by the notifications applet (notifications@cinnamon.org) which then displays a bell icon on the panel, assuming the notification hasn't already been dismissed. The grouped-window-list applet also listens for this same signal and then gets the name of the app that sent it and displays the badge on that app's icon in the panel.

I see. Thanks for the explanation! I am no expert, but maybe I’ll try to gather some debug information tomorrow. Maybe we can find out what’s happening (or not happening) there.

@Kruemmelkeks
Copy link
Kruemmelkeks commented Apr 21, 2025

@fredcw I did some tests and found something. But I'm not sure what to do of it.

I added some debug logging to the notifcationReceived-Function in the workspace.js:

Image

And this is what I found in LookingGlass:
Image

I did some tests with Thunderbird, Signal and Vivaldi. But for every App except Thunderbird the AppId is empty, thus the if-structure is executed performing an immediate return.
It seems like this filtering is something that was added in your last commit. I did not try to check out the previous code version yet (need to go to bed, so maybe in the next days when I got some time in the evening).

Any idea why that happens? If you need more information/logs I can if course try to help out.

//EDIT: Replaced code with screenshot for better readability.

@ask-compu
Copy link

my understanding (could be wrong) as that most stuff still uses the ubuntu unity APIs for things like notification badges https://wiki.ubuntu.com/Unity/LauncherAPI#Count

@Jana1981June
Copy link

I dont know how "they" (zap zap) do it, but zap zap (whats-app for linux) has a system tray icon AND this shows a red-white number for new messages.
I think there has really the time come for a linux common solution of this.

@fredcw
Copy link
Contributor
fredcw commented Apr 22, 2025

@Kruemmelkeks Thanks. It seems that there's no notification.source.app for flatpak apps.

Edit: I found a solution for flatpaks:

notificationReceived(mtray, notification) {
        const getFlatpakAppIdFromNotification = (notification) => {
            // This only works if the app is launched from a menu applet or panel launcher, not
            // if launched from terminal (flatpak run ...)
            try {
                const pid = notification.source.pid;
                let [success, contents] = GLib.file_get_contents(`/proc/${pid}/environ`);
                if (!success) return null;
        
                const utf8decoder = new TextDecoder();
                const envStr = utf8decoder.decode(contents);
                const envVars = envStr.split('\u0000');
                for (let envVar of envVars) {
                    if (envVar.startsWith('GIO_LAUNCHED_DESKTOP_FILE=')) {
                        const path = envVar.split('=')[1];
                        const baseName = GLib.path_get_basename(path);
                        if (baseName) return baseName + ":flatpak";
                    }
                }
                return null;
            } catch (e) {
                global.logError(e.message);
                return null;
            }
        };

        let appId = notification.source.app?.get_id();
        if (!appId) {
            appId = getFlatpakAppIdFromNotification(notification);
        }
        if (!appId) {
            global.logError(`GWL: Failed to find appId for notification`);
            return;
        }

        this.appGroups.forEach(appGroup => {
            if (appId === appGroup.groupState.appId) {
                appGroup.incrementNotificationCount(notification);
                return;
            }
        });
    }

I've updated the gwl.zip link above.

@ask-compu

my understanding (could be wrong) as that most stuff still uses the ubuntu unity APIs for things like notification badges

Thanks, I'll look into that.

@Kruemmelkeks
Copy link

@fredcw Thanks for the update! I quickly tested it, Vivaldi now shows the notify badge correctly.
It did not work Signal and Discord yet, in LookingGlass I get the error GWL: Failed to find appId for notification. I will look into that in more detail tomorrow evening, maybe I can find out something more helpful.

@fredcw
Copy link
Contributor
fredcw commented Apr 23, 2025

@Kruemmelkeks Thanks. How did you install discord? Is it a flatpak, what distro are you using?

@ask-compu
Copy link
ask-compu commented Apr 23, 2025

@Kruemmelkeks Thanks. How did you install discord? Is it a flatpak, what distro are you using?

this reddit comment seems to be pretty informative about how notification badges work on other desktops https://www.reddit.com/r/kde/comments/1de0019/notifications_badges_on_icons/l88kcsy/

it seems to confirm that the ubuntu unity API is the way to go

@Kruemmelkeks
Copy link

@Kruemmelkeks Thanks. How did you install discord? Is it a flatpak, what distro are you using?

Yep it's flatpak, installed via the Cinnamon Software Manager.

Image

Image

@Kruemmelkeks
Copy link
Kruemmelkeks commented Apr 27, 2025

I finally managed to do some debug logging. Sorry for the delay.

The problem seems to be that your updated code is looking for a string GIO_LAUNCHED_DESKTOP_FILE= in the environment file, but that string does not exists. This is for example the content of my discord environment:

HOME=/home/alexander
LANG=de_DE.UTF-8
LOGNAME=alexander
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SHELL=/bin/bash
USER=alexander
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/home/alexander/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_RUNTIME_DIR=/run/user/1000
GTK_MODULES=gail:atk-bridge
QT_ACCESSIBILITY=1
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=cinnamon
DISPLAY=:0
GDMSESSION=cinnamon
GDM_LANG=de_DE
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GSM_SKIP_SSH_AGENT_WORKAROUND=true
GTK3_MODULES=xapp-gtk3-module
IM_CONFIG_PHASE=1
LANGUAGE=de_DE
PWD=/home/alexander
SESSION_MANAGER=local/alexander-MS-7B89:@/tmp/.ICE-unix/1465,unix/alexander-MS-7B89:/tmp/.ICE-unix/1465
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
XAUTHORITY=/home/alexander/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/alexander
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
_=/usr/bin/dbus-update-activation-environment
MANAGERPID=1423
INVOCATION_ID=d5b99506bafe463e91107b7e708d20ef
JOURNAL_STREAM=8:22599
SYSTEMD_EXEC_PID=2164
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/xdg-desktop-portal-gtk.service/memory.pressure
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=

//Edit: As this is getting more technical on your proposed solution we can also switch over to your PR for further discussions. Don't wanna spam the comments section of this feature request unnecessarily.

@fredcw
Copy link
Contributor
fredcw commented Apr 27, 2025

@Kruemmelkeks I found an easier solution but I can't provide the applet for testing because it changes system files. I've updated the PR. Discord flatpak and vivaldi flatpak work fine, and signal and Telegram change the background color of the icon, so that's not a problem. Most flatpak apps seem to work by default, though I found a few exceptions (just browsers).

@ask-compu
Copy link

@Kruemmelkeks I found an easier solution but I can't provide the applet for testing because it changes system files. I've updated the PR. Discord flatpak and vivaldi flatpak work fine, and signal and Telegram change the background color of the icon, so that's not a problem. Most flatpak apps seem to work by default, though I found a few exceptions (just browsers).

implemented the unity API? also oooh the background color change is something even KDE is missing

@fredcw
Copy link
Contributor
fredcw commented Apr 28, 2025

@ask-compu The unity API looks like it might be worth doing but tbh, adding that to cinnamon is a bit above my pay grade, I wouldn't even know where to start. In any case, this simple counting of desktops notifications would still need to be done for all the apps that don't support the unity API.

@ask-compu
Copy link

@ask-compu The unity API looks like it might be worth doing but tbh, adding that to cinnamon is a bit above my pay grade, I wouldn't even know where to start. In any case, this simple counting of desktops notifications would still need to be done for all the apps that don't support the unity API.

i found the part of KDE that implements the unity API for notification badges and progress bars on the taskbar app icons https://github.com/KDE/plasma-desktop/blob/f40a2ea0fe562bbda7573d69ccd529bd54afb51e/applets/taskmanager/smartlauncherbackend.cpp#L67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0