Bug 418062 - Can't specify svg full path for icon in .desktop file
Summary: Can't specify svg full path for icon in .desktop file
Status: RESOLVED DUPLICATE of bug 394981
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) (show other bugs)
Version: 5.18.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-22 22:51 UTC by Nico Lynzaad
Modified: 2020-02-24 05:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Full Path - With Extension (219.79 KB, image/png)
2020-02-22 22:51 UTC, Nico Lynzaad
Details
Full Path - Without Extension (275.39 KB, image/png)
2020-02-22 22:51 UTC, Nico Lynzaad
Details
Default Path (268.60 KB, image/png)
2020-02-22 22:52 UTC, Nico Lynzaad
Details
Default Path - With Extension (299.73 KB, image/png)
2020-02-22 22:52 UTC, Nico Lynzaad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Lynzaad 2020-02-22 22:51:16 UTC
Created attachment 126315 [details]
Full Path - With Extension

SUMMARY
When specifying the full path of a svg icon (ie /path/icon.svg), with or without the ".svg" extension specified, for an icon in a .desktop file the icon can't render in either dolphin or in the application launcher. When using the icon in the default icons path the icon displays correctly. 

This results in various applications that uses custom icon paths for svg icons to not display correctly in the application launcher and dolphin.

As test case the following can be done to reproduce (Using KCalc as an example, same problem can be found for JetBrains IDEs and multiple other applications):
1) Copy accessories-calculator.svg from default theme folders to desktop, ie /home/user/desktop.
2) Open /usr/share/applications/org.kde.kcalc.desktop
3) Edit icon path for following three scenarios:
3a) Use full path: icon=/home/user/desktop/accessories-calculator.svg => Result: .desktop file does not display icon.
3b) Use full path excluding extension: icon=/home/user/desktop/accessories-calculator.svg => Result: .desktop file does not display icon.
3c) Use default icon path: icon=accessories-calculator or icon=accessories-calculator.svg  => Result: .desktop file displays icon.

EXPECTED RESULT
Icons should be displayed when full file paths, with the extension specified, are used.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSuse TumbleWeed
(available in About System)
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Problem seems to be distribution agnostic. Tested on Kubuntu, KDE Neon, Manjaro, OpenSuse and FerenOS
Comment 1 Nico Lynzaad 2020-02-22 22:51:54 UTC
Created attachment 126316 [details]
Full Path - Without Extension
Comment 2 Nico Lynzaad 2020-02-22 22:52:10 UTC
Created attachment 126317 [details]
Default Path
Comment 3 Nico Lynzaad 2020-02-22 22:52:34 UTC
Created attachment 126318 [details]
Default Path - With Extension
Comment 4 Nate Graham 2020-02-24 05:12:52 UTC

*** This bug has been marked as a duplicate of bug 394981 ***