Bug 381442 - SVG starter icons not displayed in application menus/launchers
Summary: SVG starter icons not displayed in application menus/launchers
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) (show other bugs)
Version: 5.11.2
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL: https://youtrack.jetbrains.com/issue/...
Keywords:
: 396084 396574 397884 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-06-20 13:36 UTC by Sefa Eyeoglu
Modified: 2018-08-26 19:05 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshots of the issue (146 bytes, text/plain)
2017-06-20 13:36 UTC, Sefa Eyeoglu
Details
Some icons in the application dashboard, which do not display their icon (187.11 KB, image/png)
2017-06-20 13:42 UTC, Sefa Eyeoglu
Details
The starter elements in the KDE menu editor (83.07 KB, image/png)
2017-06-20 13:42 UTC, Sefa Eyeoglu
Details
.desktop file of an application (372 bytes, text/plain)
2017-06-20 15:46 UTC, Sefa Eyeoglu
Details
Example SVG file (2.77 KB, image/svg+xml)
2017-06-20 15:47 UTC, Sefa Eyeoglu
Details
Menu Editor and Launcher (1.04 MB, image/png)
2017-11-09 11:34 UTC, Alex Ioannou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sefa Eyeoglu 2017-06-20 13:36:02 UTC
Created attachment 106188 [details]
Screenshots of the issue

The starter icons of starters with SVG icons is missing in certain areas of the system. 
There are some screenshots attached, which show the issue.
This issue originates from this (https://youtrack.jetbrains.com/issue/ALL-1689) bug report for Jetbrains Toolbox.
Comment 1 Sefa Eyeoglu 2017-06-20 13:42:04 UTC
Created attachment 106189 [details]
Some icons in the application dashboard, which do not display their icon
Comment 2 Sefa Eyeoglu 2017-06-20 13:42:55 UTC
Created attachment 106190 [details]
The starter elements in the KDE menu editor
Comment 3 Kai Uwe Broulik 2017-06-20 13:49:35 UTC
Can you paste the .desktop file of an application that shows this behavior? I suspect it's using an absolute path to an SVG which has proven to break in various places.
Comment 4 Sefa Eyeoglu 2017-06-20 15:46:45 UTC
Created attachment 106193 [details]
.desktop file of an application
Comment 5 Sefa Eyeoglu 2017-06-20 15:47:50 UTC
Created attachment 106194 [details]
Example SVG file
Comment 6 Vantuz 2017-06-29 14:48:40 UTC
I have this bug on Plasma 5.9.4 . According to this forum thread: https://www.linux.org.ru/forum/desktop/13125978 this bug is also present on Plasma 5.8.5
Comment 7 Sefa Eyeoglu 2017-10-13 13:47:49 UTC
Are there any updates on this?
Comment 8 null 2017-10-31 22:49:48 UTC
Can confirm. For an incomplete list of similar issues, see https://phabricator.kde.org/D5109#162592.

@Sefa: As a workaround, edit the desktop file and remove the filename extension from the icon's name. With this, I was able to see your example SVG in the application dashboard.
Comment 9 Alex Ioannou 2017-11-09 11:34:24 UTC
Created attachment 108760 [details]
Menu Editor and Launcher

The workaround doesn't work for me.
Comment 10 null 2017-11-09 11:43:07 UTC
Judging from your screenshot, you are removing the file extension from the file itself. However, the workaround is not about that. It is about opening the .desktop file corresponding to the entry you are editing in a text editor. You should see "Icon=/path/icon.svg". Just remove the ".svg" from there.
Comment 11 Alex Ioannou 2017-11-09 11:56:23 UTC
Ahhh I see.   I checked the .desktop files and they didn't have the extensions.  After deleting the edited icons the original ones showed up - thanks :)
Comment 12 Alexander Mentyu 2017-12-05 14:20:36 UTC
Just installed JetBrains Toolbox from official website and icons are correctly displayed in menu + from this toolbox installed PyCharm and it's icon is also displayed correctly

Distribution: KDE neon Developer Edition - Stable Branches
Plasma: 5.11.4
Frameworks: 5.41.0
Qt: 5.9.3
Kernel 4.10.0-40-generic
Type: 64-bit
Comment 13 Alexander Mentyu 2017-12-06 08:18:04 UTC
Currently after updating and restarting Plasma - both 'Toolbox' and 'PyCharm' icons are displayed as default blank page icons
Comment 14 Sefa Eyeoglu 2018-03-19 19:19:38 UTC
Reviving this issue. 

Could it be possible that this is an upstream issue with Qt? I have seen multiple issues regarding svgs and Qt.
Comment 15 Nate Graham 2018-05-26 14:21:49 UTC
Yup, it's a Qt issue: https://bugreports.qt.io/browse/QTBUG-63187

We investigated working around this ourselves, but that caused other issues. We'll have to wait for or drive a Qt fix. Thanks for understanding, everyone!
Comment 16 Patrick Silva 2018-07-16 20:39:50 UTC
*** Bug 396574 has been marked as a duplicate of this bug. ***
Comment 17 Patrick Silva 2018-08-06 10:42:45 UTC
*** Bug 396084 has been marked as a duplicate of this bug. ***
Comment 18 Patrick Silva 2018-08-26 16:12:18 UTC
*** Bug 397884 has been marked as a duplicate of this bug. ***
Comment 19 britalmeida 2018-08-26 19:05:36 UTC
For myself, I have places where the same SVG Icon does not work: dolphin and Application Menu, but works when attached to a Panel.