Bug 418237 - Manually selecting icon from anywhere other than oxygen folder doesn't work.
Summary: Manually selecting icon from anywhere other than oxygen folder doesn't work.
Status: RESOLVED DUPLICATE of bug 394981
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-26 21:35 UTC by Dashon
Modified: 2020-02-27 19:14 UTC (History)
1 user (show)

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


Attachments
What I mean by blank text document icon. (11.56 KB, image/png)
2020-02-26 21:35 UTC, Dashon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dashon 2020-02-26 21:35:40 UTC
Created attachment 126440 [details]
What I mean by blank text document icon.

SUMMARY
What happens is whenever I try to change the Icon for an application of a file association. If the location of the icon is not in the /usr/share/icons/oxygen path, the icons are not only invisible to the system (which is the case of other system icons directories such as $HOME/.local/share/icons) but also selecting such an icon will result in a blank icon entry whether in dolphin or navigating panel entries. 

STEPS TO REPRODUCE in Application Launcher
1. Right click launcher widget.
2. Select Edit Applications
3. Select app you want to change (in my case firefox)
4. Use the other icons tab
5. select browse button
6. manually navigate to a different icon anywhere on the system


OBSERVED RESULT
The icon selected will result in a blank text document icon showing up in the menu entry instead of the icon selected. As well as an a blank text document .desktop file being created in $HOME/.local/share/applications. Despite the .desktop file in the previously mentioned directory having the full path spelled out. The icon refuses to show up.

EXPECTED RESULT
Icon is correctly loaded and saved.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 31 - KDE Spin
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.67
Qt Version: 5.13.2

ADDITIONAL INFORMATION
This also happens with the exact same results if I try to change the file association of say a python file with extension .py. The exact same empty document icon will appear on all future creations of a .py file.
Comment 1 Dashon 2020-02-26 21:36:44 UTC
Also sorry if this is under the wrong product. Point me in the right direction in that case. I thought it belonged under kdesktop ,but did not see that as an option.
Comment 2 Nate Graham 2020-02-27 16:01:25 UTC
I assume you're using the Oxygen icon theme?
Comment 3 Dashon 2020-02-27 16:19:39 UTC
@Nate Graham. No I'm not not using the oxygen icon theme to my knowledge and I never have. I've had it on breeze dark icon theme for as long as I can remember.
Comment 4 Nate Graham 2020-02-27 17:58:01 UTC
Does /usr/share/icons/breeze exist on your system? Do you see the Breeze icon theme listed in System Settings > Icons?
Comment 5 Dashon 2020-02-27 18:02:39 UTC
(In reply to Nate Graham from comment #4)
> Does /usr/share/icons/breeze exist on your system? Do you see the Breeze
> icon theme listed in System Settings > Icons?

Yes to both of those questions.
Comment 6 Nate Graham 2020-02-27 18:28:26 UTC
Ah I think I might know what's happening here. It might be Bug 394981.

Question 1: What happens if you manually edit the .desktop file to remove the full path to the icon and just pass the name? For example `Icon=amarok`

Question 2: what happens if you remove the filename extension from the full path? For example `Icon=/usr/share/icons/breeze/apps/48/amarok`
Comment 7 Dashon 2020-02-27 18:49:47 UTC
(In reply to Nate Graham from comment #6)
> Ah I think I might know what's happening here. It might be Bug 394981.
> 
> Question 1: What happens if you manually edit the .desktop file to remove
> the full path to the icon and just pass the name? For example `Icon=amarok`
> 
> Question 2: what happens if you remove the filename extension from the full
> path? For example `Icon=/usr/share/icons/breeze/apps/48/amarok`

Answer to Question 1: Removing the full path and just providing the application name will use the default breeze icon in the case of amarok. I actually don't see an icon for firefox inside of breeze ,so I don't know where it is pulling that from. 

Answer to Question 2: Honestly something weird happens, so if I use the full path without the extension as per your example the icon shows up but then it's blurry. I'm refereing to the icon that is representing the .desktop file as being blurry.
Comment 8 Dashon 2020-02-27 18:53:55 UTC
So it does seem related to the bug you linked to. Except with the added problem that manually specifying a file outside of the icons directory shows up completely blank for example an icon in the Documents directory. However I want to try and see if using the full path for the icon in the Documents directory without a file extension causes it to show up. I'll report my findings here.
Comment 9 Dashon 2020-02-27 18:57:02 UTC
Looks like you are right this is the same as bug 394981. I know they were specifically referring to jetbrains applications in that thread from the little bit that I read, but it seems that this affects all icons shown in dolphin and the various menus. That fixes things for me, but if you don't mind me asking. What caused this to happen?
Comment 10 Dashon 2020-02-27 18:58:35 UTC
Also I wanna say that the amarok icon was blurry only when using the icon located in the root directory. Using an icon located within the home directory without the file extension works.
Comment 11 Dashon 2020-02-27 19:01:19 UTC
Anyways should I mark this as a duplicate of the other bug. Or do you guys/gals do that.
Comment 12 Nate Graham 2020-02-27 19:06:00 UTC
You can if you're certain. :) I'll do it this time.

*** This bug has been marked as a duplicate of bug 394981 ***
Comment 13 Dashon 2020-02-27 19:14:20 UTC
(In reply to Nate Graham from comment #12)
> You can if you're certain. :) I'll do it this time.
> 
> *** This bug has been marked as a duplicate of bug 394981 ***

Thanks also. After playing around some more. This bug seems to affect file associations as well. For example right click a python file ending with .py. Select properties, select file type options and try to change the icon. If the icon is .svg it will just be a blank icon even if you get rid of the extension. However the workaround suggested by the bug report you linked to works for this as well. Change the icon to png and it works.