Bug 394981 - Can't specify svg full path for icon in .desktop file (need to omit filename extension)
Summary: Can't specify svg full path for icon in .desktop file (need to omit filename ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) (show other bugs)
Version: 5.15.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Alexander Lohnau
URL:
Keywords:
: 406893 418062 418237 420191 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-03 08:04 UTC by Ilya Bizyaev
Modified: 2020-06-11 19:07 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.19.1
Sentry Crash Report:


Attachments
Icon not displayed in Favorites (80.70 KB, image/png)
2018-06-03 08:04 UTC, Ilya Bizyaev
Details
Icon displayed in search results (76.37 KB, image/png)
2018-06-03 08:05 UTC, Ilya Bizyaev
Details
JetBrains IntelliJ IDEA .desktop file (363 bytes, application/x-desktop)
2018-06-03 10:08 UTC, Ilya Bizyaev
Details
Missing JetBrains-Toobox-installed app icons (Classic app menu) (13.30 KB, image/png)
2019-02-09 08:19 UTC, alt.su-7oon2u5b
Details
SVG icon of BiglyBT (324.62 KB, image/png)
2020-05-21 14:01 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2018-06-03 08:04:36 UTC
Created attachment 113029 [details]
Icon not displayed in Favorites

For some reason, after an upgrade from 5.8.x to 5.12.5 JetBrains IDE icons (IntelliJ IDEA, PyCharm etc.) are no longer displayed in Kickoff's favorites and categories. However, they are displayed when I search in Kickoff, which makes me think it's a bug. There were no changes made to the JetBrains product installation. Same problem in Application Dashboard.
Comment 1 Ilya Bizyaev 2018-06-03 08:05:26 UTC
Created attachment 113030 [details]
Icon displayed in search results
Comment 2 David Edmundson 2018-06-03 10:04:28 UTC
Can you find the .desktop file for JetBrains and upload it.

Can you confirm that it's broken when you see it in Kickoff when you look under Applications/Development
Comment 3 Ilya Bizyaev 2018-06-03 10:07:08 UTC
Yes, it is broken under Applications -> Development.
Comment 4 Ilya Bizyaev 2018-06-03 10:08:14 UTC
Created attachment 113033 [details]
JetBrains IntelliJ IDEA .desktop file
Comment 5 Ilya Bizyaev 2018-06-03 10:10:37 UTC
I've just found a related issue: the *.desktop file icon is displayed in the file picker and not displayed in Dolphin.
Comment 6 Nate Graham 2018-06-03 18:25:36 UTC
(In reply to Ilya Bizyaev from comment #5)
> I've just found a related issue: the *.desktop file icon is displayed in the
> file picker and not displayed in Dolphin.

Could be Bug 220330.
Comment 7 Jan Neumann 2018-07-27 13:09:18 UTC
I'm having the exact same issue.
Comment 8 alt.su-7oon2u5b 2019-02-09 08:17:06 UTC
This is still an issue, but it's not Kicker related. It also happens in Kickoff and the Dashboard.

This icons show up when: searching in any menu, searching via KRunner, in KDE Menu Editor, 

They don't show up: when the apps are added to Kicker favorites, when manually browsing the menus, or in Dolphin (/home/<username>/.local/share/appl)ications/*.desktop

This issue only seems to happen for apps installed via JetBrains Toolbox (an AppImage). JetBrains apps installed via a PPA (https://github.com/JonasGroeger/jetbrains-ppa) have their icons.
Comment 9 alt.su-7oon2u5b 2019-02-09 08:19:40 UTC
Created attachment 117941 [details]
Missing JetBrains-Toobox-installed app icons  (Classic app menu)
Comment 10 Nate Graham 2019-04-25 20:33:20 UTC
*** Bug 406893 has been marked as a duplicate of this bug. ***
Comment 11 J.Novo 2019-05-05 16:13:13 UTC
Found out the desktop file has the icon path as icon.svg, like:

Icon=/home/user/.local/share/JetBrains/Toolbox/toolbox.svg

Removing the svg extension actually makes the icon show in Dolphin and menu, like:

Icon=/home/user/.local/share/JetBrains/Toolbox/toolbox
Comment 12 Tekeyser 2019-09-03 13:19:32 UTC
I am having this issue with what appears to be every application using an .svg icon. As soon as I convert them into .png icons and change the .desktop to point to the new icon file they show up fine. The list of additional programs with icons affected includes info centre, task switcher, ksystemlog, calculator, cuttlefish, and many more.
Comment 13 Musikolo 2019-11-09 18:17:28 UTC
I've also been experiencing the same issue with datagrip. As Tekeyser mentioned, the app icon is displayed correctly under the Applications menu, but it won't show when added as a favorite. The work around is just changing the icon type from svg to png in the desktop file. 

In the case of Arch Linux, this is done by just replacing the ".svg" extension with ".png" at https://aur.archlinux.org/cgit/aur.git/tree/jetbrains-datagrip.desktop?h=datagrip#n5 Fortunately, this can easily done because both formats are available.

I hope a solution is found, because it's kind of an annoying bug.

Thank you!
Comment 14 Nate Graham 2020-02-24 05:12:52 UTC
*** Bug 418062 has been marked as a duplicate of this bug. ***
Comment 15 Nate Graham 2020-02-27 19:06:00 UTC
*** Bug 418237 has been marked as a duplicate of this bug. ***
Comment 16 Kai Uwe Broulik 2020-04-17 12:21:33 UTC
*** Bug 420191 has been marked as a duplicate of this bug. ***
Comment 17 Patrick Silva 2020-05-17 15:30:04 UTC
BiglyBT torrent client is also affected.

https://github.com/BiglySoftware/BiglyBT/releases

Its icon is missing under Internet category of kickoff but it is displayed in search results.
Removing ".svg" from "Icon=..." line of .desktop file did not solve the problem. 

Operating System: Arch Linux 
KDE Plasma Version: 5.18.90
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0 rc2
Comment 18 Patrick Silva 2020-05-21 14:01:43 UTC
Created attachment 128664 [details]
SVG icon of BiglyBT

Desktop and Information Panel of Dolphin can render the svg icon of BiglyBT.
But the same icon is not rendered in files view of Dolphin.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2