Bug 434354

Summary: Web apps are not showing correct Icons
Product: [Unmaintained] lattedock Reporter: Patrick <admin>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED NOT A BUG    
Severity: normal CC: mvourlakos, plasma-bugs-null
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick 2021-03-13 12:39:03 UTC
SUMMARY
With brave beta and nightly (as normal brave doesn't create an own icon for webapps) some webapps are bugging around between the brave and the website icon in the latte dock.

STEPS TO REPRODUCE
1. Download brave beta
2. go, for example, to youtube and press on the plus button to create the webapp
3. Hover over the icon in the latte task bar and see the icon switching between brave and youtube

OBSERVED RESULT
Webapps logo not showing correctly (a few like nextcloud link or yt music work)

EXPECTED RESULT
Every webapp should show the correct Icon

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux with KDE Plasma and X11
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Normal KDE taskbar shows all Icons correctly. This is why I don't think it's the fault from brave. I also compiled 0.9.10 und 0.9.9 from git with the same behaviour.
Comment 1 Michail Vourlakos 2021-03-13 15:14:59 UTC
1. Latte v0.9.11 is not maintained any more, is this still valid with master version?
2. Show me how the look in plasma taskmanager and how they look in Latte to compare...

Latte is not adjusting any icons.... whatever is the case for plasma taskmanagers it should also be the case for Latte also.
Comment 2 Patrick 2021-03-13 15:44:28 UTC
I did create a video for you where I show what the problem is. I just did an update and it is still the latest version from the aur (https://archlinux.org/packages/community/x86_64/latte-dock/). As i mentioned in the video, teams didn't work at first but after rebooting it worked. Youtube didn't.

Video: https://cloud.dr0ny.games/index.php/s/boDRi2YnEbaEGYb 

Thanks! :)
Comment 3 Michail Vourlakos 2021-03-13 15:52:15 UTC
I think is upstream, you can confirm it as following.

1. Disable parabolic effect
2. increase/decrease the items size until you find for which icon size the issue appears
3. Have you checked your desktop file to be valid according to https://userbase.kde.org/LatteDock/FAQ#My_launcher_and_its_window_are_not_associated_correctly_OR_my_launcher_is_using_a_low-resolution_icon.3F
Comment 4 Patrick 2021-03-13 15:52:43 UTC
(In reply to Patrick from comment #2)
> I did create a video for you where I show what the problem is. I just did an
> update and it is still the latest version from the aur
> (https://archlinux.org/packages/community/x86_64/latte-dock/). As i
> mentioned in the video, teams didn't work at first but after rebooting it
> worked. Youtube didn't.
> 
> Video: https://cloud.dr0ny.games/index.php/s/boDRi2YnEbaEGYb 
> 
> Thanks! :)

EDIT:
Sorry, got your answer wrong, just compiled the master version and the problem still appears :).
Comment 5 Patrick 2021-03-13 16:07:16 UTC
(In reply to Michail Vourlakos from comment #3)
> I think is upstream, you can confirm it as following.
> 
> 1. Disable parabolic effect
> 2. increase/decrease the items size until you find for which icon size the
> issue appears
> 3. Have you checked your desktop file to be valid according to
> https://userbase.kde.org/LatteDock/
> FAQ#My_launcher_and_its_window_are_not_associated_correctly_OR_my_launcher_is
> _using_a_low-resolution_icon.3F

Thanks a lot! The second option worked for me as I didn't quite get how to do the first one. It works pretty good on 72px and 75% on hoover zoom. 
Again, really appreciate your help, thanks :D
Comment 6 Michail Vourlakos 2021-03-13 16:27:13 UTC
I believe you should also try 3 and may fixes it for you at all cases. Can you share the youtube desktop file from ~/.local/share/applications?
Comment 7 Patrick 2021-03-13 16:35:12 UTC
(In reply to Michail Vourlakos from comment #6)
> I believe you should also try 3 and may fixes it for you at all cases. Can
> you share the youtube desktop file from ~/.local/share/applications?

Sure, this is the Desktop file: 
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=YouTube
Exec=/opt/brave.com/brave-beta/brave-browser-beta --profile-directory=Default --app-id=agimnkijcaahngcdmfeangaknmldooml
Icon=brave-agimnkijcaahngcdmfeangaknmldooml-Default
StartupWMClass=crx_agimnkijcaahngcdmfeangaknmldooml

I added this line at the end of it, as this was the output from xprop:

WM_CLASS(STRING) = "crx_agimnkijcaahngcdmfeangaknmldooml", "Brave-browser-beta"

It works again better now but if I hover over it very slowly I can see the brave logo at around 50 - 45 px zoom comming through.

Thanks again :D
Comment 8 Michail Vourlakos 2021-03-13 16:42:38 UTC
That icon specified is found in your ~/.local/share/icons?
Comment 9 Michail Vourlakos 2021-03-13 16:45:22 UTC
maybe the mentioned icon for 48px. has faulty stored to be Brave instead of YouTube.
Comment 10 Patrick 2021-03-13 17:03:09 UTC
(In reply to Michail Vourlakos from comment #9)
> maybe the mentioned icon for 48px. has faulty stored to be Brave instead of
> YouTube.

Ahh that's it. I had an arch install where it worked perfectly fine and after a crash during a Kernel update i reinstalled it and then it started, aswell as on my school laptop. I use the Tela Icon Pack and it seems that this is a issue with the pack. I changed it to tela dark (which looks exactly the same) and it worked! On my PC aswell as on my laptop. 
Thank you very much!
There isn't a way to tip you? I never got a better support than today :D
Comment 11 Michail Vourlakos 2021-03-13 17:05:14 UTC
(In reply to Patrick from comment #10)
> (In reply to Michail Vourlakos from comment #9)
> > maybe the mentioned icon for 48px. has faulty stored to be Brave instead of
> > YouTube.
> 
> Ahh that's it. I had an arch install where it worked perfectly fine and
> after a crash during a Kernel update i reinstalled it and then it started,
> aswell as on my school laptop. I use the Tela Icon Pack and it seems that
> this is a issue with the pack. I changed it to tela dark (which looks
> exactly the same) and it worked! On my PC aswell as on my laptop. 
> Thank you very much!
> There isn't a way to tip you? I never got a better support than today :D

you mean donate?
Comment 12 Patrick 2021-03-13 17:06:19 UTC
(In reply to Michail Vourlakos from comment #11)
> (In reply to Patrick from comment #10)
> > (In reply to Michail Vourlakos from comment #9)
> > > maybe the mentioned icon for 48px. has faulty stored to be Brave instead of
> > > YouTube.
> > 
> > Ahh that's it. I had an arch install where it worked perfectly fine and
> > after a crash during a Kernel update i reinstalled it and then it started,
> > aswell as on my school laptop. I use the Tela Icon Pack and it seems that
> > this is a issue with the pack. I changed it to tela dark (which looks
> > exactly the same) and it worked! On my PC aswell as on my laptop. 
> > Thank you very much!
> > There isn't a way to tip you? I never got a better support than today :D
> 
> you mean donate?

Yes :D
Comment 13 Michail Vourlakos 2021-03-13 17:08:47 UTC
https://liberapay.com/latte-dock/donate
Comment 14 Patrick 2021-03-13 17:10:09 UTC
(In reply to Michail Vourlakos from comment #13)
> https://liberapay.com/latte-dock/donate

Thanks, keep the good work up, and thanks for your patience and good support :D