SUMMARY As title. There are two icons for Android Studio installed in my system. One is from breeze icon theme, and the other one is shipped with android studio package from AUR. The Icon key in desktop file is set to use the AUR one, but the breeze one is used in Application Menu and Krunner. Plus, the wired thing is that if you pin the desktop entry to the panel, the AUR one is used. STEPS TO REPRODUCE No reproduce steps. OBSERVED RESULT The breeze icon is used in Application Menu and Krunner while Icon key is set to use the AUR one. EXPECTED RESULT Icon follows Icon key written in desktop file. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.4.3 KDE Frameworks Version: 6.16.0 Qt Version: 6.9.1 Kernel Version: 6.15.6-arch1-1-cjktty (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics Memory: 16 GiB of RAM (13.5 GiB usable) Graphics Processor: AMD Radeon Graphics ADDITIONAL INFORMATION Here are two screenshot of the situation: https://sm.ms/image/oACRJmspjU7XyTh https://sm.ms/image/GYPR1EbKc6veWXI
Thanks for the bug report. So that I can try to reproduce this, can you please share the way, step by step, you changed the icon for the application? There are a few ways to do it (through the menu, editing files etc). Thanks.
OK, here are the steps that possibly reproduce the problem: 1. Make sure you're using Arch Linux and install `plasma-meta` package to use KDE Desktop. 2. Download the tarball here: https://limewire.com/d/wSxz6#45NhbR5FDg, sha256sum: cb4f89ce50af004dedca68d73b963c2d79ecb6ece8d6d860aa77e387c72dc792 3. Extract the tarball and get inside 4. Run `makepkg -sic` to build and install the package 5. Pin the android-studio from Application Menu to the panel
(In reply to BryanLiang from comment #2) > OK, here are the steps that possibly reproduce the problem: > > 1. Make sure you're using Arch Linux and install `plasma-meta` package to > use KDE Desktop. > 2. Download the tarball here: https://limewire.com/d/wSxz6#45NhbR5FDg, > sha256sum: cb4f89ce50af004dedca68d73b963c2d79ecb6ece8d6d860aa77e387c72dc792 > 3. Extract the tarball and get inside > 4. Run `makepkg -sic` to build and install the package > 5. Pin the android-studio from Application Menu to the panel Thank you for the additional detail. I've taken a look at the AUR package you linked to, and the official Google download source tarball. From the screenshots: - Icon in /usr/share/application/android-studio.desktop, which is the one provided by AUR and shown in the panel (blue icon on white background) /usr/share/icons/hicolor/scalable/apps/android-studio.svg This is also the icon provided by Google in their official download. - Icon in App Menu (green background from Breeze) archos/usr/share/icons/breeze/apps/48/android-studio.svg In the pkgbuild file, this is how the icons are installed. They are placed in /opt/android-studio/ and then symlinked to /usr/share/icons/hicolor/scalable/apps (where the .desktop file expects them) install -d $pkgdir/{opt/$pkgname,usr/bin,usr/share/icons/hicolor/scalable/apps} ln -s /opt/android-studio/bin/studio.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg **To summarize** - This doesn't look like a problem with the AUR package - Perhaps the App Menu & kicker aren't finding the icon specified in the .desktop file (maybe because of the symlink) and falling back to the Breeze icon
Thanks for your investigation, I do not think symlink will cause this problem. Another package `intellij-idea-ultimate-edition` also use symlink for the icon, but it doesn't has this problem. Here is the screenshot for the situation: https://sm.ms/image/zhN3emI9bGBlVry. Here is the PKGBUILD tarball for `intellij-idea-ultimate-edition`: https://limewire.com/d/UilY5#QcGL8n4Dfg, sha256sum: a96fa4318062d7a75511d5f8c06d9e73d4a3ac963b1c8136b59ceee035603b51
Thanks for that detail, that's useful. Something that is probably relevant is that the Breeze icon for Android Studio is different than the one they ship. I saw that most other icons for Breeze were the same as the ones in the hicolor/scalable/apps directory. Can you check to see if the icon in both these locations look the same? /usr/share/icons/breeze/apps/48 /usr/share/icons/hicolor/scalable/apps
(In reply to TraceyC from comment #5) > Thanks for that detail, that's useful. Something that is probably relevant > is that the Breeze icon for Android Studio is different than the one they > ship. I saw that most other icons for Breeze were the same as the ones in > the hicolor/scalable/apps directory. > > Can you check to see if the icon in both these locations look the same? > > /usr/share/icons/breeze/apps/48 > /usr/share/icons/hicolor/scalable/apps Of course. Here is the screenshot: https://sm.ms/image/4VCM5nAbxuSkZyq They do not look the same.
Thanks for the screenshot of the Android Studio icons. Can you please do the same for `intellij-idea-ultimate-edition` ? Thanks. I suspect the icon looks the same, and that's why the bug is not apparent with that app.
(In reply to TraceyC from comment #7) > Thanks for the screenshot of the Android Studio icons. Can you please do the > same for `intellij-idea-ultimate-edition` ? Thanks. > > I suspect the icon looks the same, and that's why the bug is not apparent > with that app. Sorry that the breeze theme doesn't provide the icon for `intellij-idea-ultimate-edition` , the only icon for it is shipped with its AUR package. So it is not affected by this bug. Actually `android-studio` is the only package in my system that encounters this problem.
Screenshot for comment #8
https://sm.ms/image/YHDel7ZoxC6pPcK
I am unable to reproduce this with Skanpage on git-master or Plasma 6.4.3. skanpage has an svg icon in both directories: /usr/share/icons/breeze/apps/48 /usr/share/icons/hicolor/scalable/apps I copied a different icon to here and rebooted /usr/share/icons/breeze/apps/48/skanpage In /usr/share/application/ the Icon directory is not explicitly set, it only says Icon=skanpage Then I looked at skanpage in the Application Menu / Krunner, I see the icon in scalable/apps, not the one in the breeze directory I'll let someone more familiar with the icon hierarchy take a look
I'm starting to suspect this is Bug 493034, especially if the icon key in the .desktop file is expressed as an absolute path. Can you attach the .desktop file for this app?
Created attachment 183904 [details] the desktop file of android-studio
Created attachment 183905 [details] the desktop file of android-studio
(In reply to Nate Graham from comment #12) > I'm starting to suspect this is Bug 493034, especially if the icon key in > the .desktop file is expressed as an absolute path. > > Can you attach the .desktop file for this app? I uploaded the desktop file for this app just now.
> Icon=/usr/share/icons/hicolor/scalable/apps/android-studio.svg Yep, exactly as I suspected. It's Bug 493034. *** This bug has been marked as a duplicate of bug 493034 ***
It seems that android studio icon from breeze theme is removed in 6.18.0. Icons in Application Menu and panel are the same now.
Makes sense; by removing the theme icon; we no longer trigger the issue in Bug 493034. That's still the root cause, though. *** This bug has been marked as a duplicate of bug 493034 ***