https://bugs.kde.org/show_bug.cgi?id=419659

--- Comment #8 from Jonathan Chun <unmonito...@jonathanchun.com> ---
I am not familiar enough with C++ to know how to test my theory, but I think
you can rest assured that this is not a latte-dock problem. I suspect it is an
issue upstream with Electron.

I'm not 100% sure where it's failing, but my guess is that in the KDE
environment, this function here where it is looking for the desktop file is
returning the wrong value.
https://github.com/electron/electron/blob/b6246dcf122e584c672566877cb60d33dbc4705e/shell/browser/linux/unity_service.cc#L90

I was able to get badge counters (albeit fake numbers) to show up on the apps
in question (Mailspring/Discord), both of which use electron with a quick
python script to check the unity launcher api,

Both libunity and straight through dbus work fine with a quick python script:
https://paste.ubuntu.com/25473314/
https://paste.ubuntu.com/25615125/

I got the snippets from https://github.com/micheleg/dash-to-dock/pull/590 from
the guy who wrote the unity launcher feature for dash to dock, so fairly
certain that it's up to spec with the Unity Launcher API.

I get "true" if i console.log IsUnityRunning(), so it's not being blocked by
the fact that I'm running KDE.
https://github.com/electron/electron/blob/b6246dcf122e584c672566877cb60d33dbc4705e/shell/browser/linux/unity_service.cc#L118

Here, we can see that KDE4/KDE5 are considered valid unity environments:
https://github.com/electron/electron/blob/b6246dcf122e584c672566877cb60d33dbc4705e/shell/browser/linux/unity_service.cc#L65

-----

Mostly just documenting this stuff here so that if someone comes across it in
the future, they can at least see what I tried. I'll do a little bit more
testing and probably open an issue with Electron for further troubleshooting
assistance, so I think we can close it out here on the KDE side if you agree.

I can circle back here with a new ticket if I get anything more concrete
pointing at lattedock.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to