micheleg / dash-to-dock

A dock for the Gnome Shell. This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops.
https://micheleg.github.io/dash-to-dock/
GNU General Public License v2.0
3.9k stars 461 forks source link

App Badge from Chromium ignored #2114

Open rorymichele opened 1 year ago

rorymichele commented 1 year ago

According to issue [#1964] Dash to Dock now respects apps badge counter, if the setting 'Application-provided counter overrides the notifications counter' is set:

image

We are writing a PWA that uses navigator.setAppBadge to set the badge counter. under macOS this successfully displays a badge next to App Icon, but under linux this is ignored (in both cases using Chromium as the browser running it). I am not sure if the error is in the chromium code, but as it works under Mac I would assume the bug is in how dash-to-dock reads the application-provided counter?

JakobDev commented 8 months ago

The implementation of Chromium is sadly a little broken. You need to install libunity to make it work. Chromium also checks for some reason if it's running under Unity or KDE before using the API. So you need to set XDG_CURRENT_SESSION=KDEand XDG_CURRENT_DESKTOP=KDE to make Chromium think it's running under KDE.