Bug 311636 - image previews being embedded into oxygen folder instead of selected icon theme
Summary: image previews being embedded into oxygen folder instead of selected icon theme
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Unmaintained
Component: thumbnail (show other bugs)
Version: 4.10.80
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 334574 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-13 15:26 UTC by Craig Magina
Modified: 2018-04-14 13:39 UTC (History)
5 users (show)

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


Attachments
Screenshot showing the problem (168.75 KB, image/png)
2012-12-13 15:29 UTC, Craig Magina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Magina 2012-12-13 15:26:51 UTC
I changed the icon theme and have rebooted since making that change, which in previous versions would cause the base folder that would be used under the little image previews shown over each folder containing images would be updated to the new icon theme,  however in KDE SC 4.9.90, Dolphin 2.1.85, it is still using the oxygen folder. If I hover my mouse over one of these folders, the side information view actually shows the correct folder icon being used under the image previews. I was able to see this in all view modes (icon, list, tree).

Reproducible: Always

Steps to Reproduce:
1. Change the icon theme (Potenza in my case - installed from a deb file) and reboot/relog
2. Enable Previews
3. Find a folder containing images and ensure you have allowed the thumbnailer to create thumbnails for the images contained in the folder
4. Go to the path one above the folder containing images
Actual Results:  
You will see an oxygen folder with little preview images on top of it.

Expected Results:  
The base folder from the selected icon theme with little preview images on top of it.
Comment 1 Craig Magina 2012-12-13 15:29:27 UTC
Created attachment 75813 [details]
Screenshot showing the problem
Comment 2 Christoph Feck 2012-12-17 23:35:23 UTC
Could you please check with "keditfiletype inode/directory" which icon you selected as the default folder icon?
Comment 3 Craig Magina 2012-12-18 20:41:08 UTC
So, I seemed to have worked around it by switching back to the oxygen icons and then back to potenza. Since doing that, it is choosing the correct icon as the base. I did run your command via krunner and it showed the oxygen folder, but when I clicked the icon it switch to the potenza icon. I am going to create a new user and see if I can reproduce there to rule out any issues with my users configuration environment.
Comment 4 Craig Magina 2013-03-07 16:14:02 UTC
This still occurs in KDE SC 4.10.1. It happens 100% of the time when I switch to a different icon set and takes some amount of switching back to the previous icon set and then to the new one again to get this to fix.
Comment 5 Christoph Feck 2013-04-18 10:45:52 UTC
If this involves switching icon themes, could you check if removing /var/tmp/kdecache-<user>/icon-cache.kcache helps resolving the issue?
Comment 6 Christoph Feck 2013-04-27 18:08:47 UTC
If you can provide the information from comment #5, please add it.
Comment 7 Christoph Feck 2013-05-13 23:45:41 UTC
To further investigate this issue, KDE developers need the information requested in comment #5. If you can provide it, or need help with finding that information, please add a comment.
Comment 8 Craig Magina 2013-05-29 16:00:27 UTC
Sorry for taking so long to get back to you. The answer on deleting the icon-cache.kcache file is that it doesn't help. I first tried by switching to the theme, verifying the problem existed, then deleting the cache and refreshing dolphin's view. I then closed dolphin, deleted the icon-cache again, opened dolphin, and saw that the problem was still there. I then deleted the cache, switched to the oxygen icon theme, deleted the cache again, switched to the new theme, and opened dolphin to check if the issue was still there and it was. Thanks for the help. Any other suggestions?
Comment 9 Christoph Feck 2013-06-16 00:18:00 UTC
Well, I debugged this, and it _is_ related to caching. Simply deleting the icon cache, however, will not help, because the kdeinit4 process (which spawns the kio_thumbnailer sub process) still keeps a lock on the cache file.

So to make the icons appear correctly after changing the icon theme, you would have to:
- delete the icon cache, as shown in comment #5
- run "kdeinit4" in Konsole to restart kdeinit4 process
- restart Dolphin to terminate the kio_thumbnail process

All of these should somehow be automatic. Reassigning.
Comment 10 Christoph Feck 2014-05-10 13:35:09 UTC
*** Bug 334574 has been marked as a duplicate of this bug. ***
Comment 11 K900 2014-05-10 19:04:33 UTC
Is there anyone working on this or anyone I can talk to about how to try and fix this?
Comment 12 Christoph Feck 2014-05-10 20:33:44 UTC
Sure, you can try. Comment #9 has some hints what needs to be done when the icon theme is changed. If you have questions, please ask on the kde-core-devel mailing list.

But to be honest, I doubt it is possible to fix it with the current architecture, though. In other words, plan for major architectural changes.
Comment 13 Nate Graham 2018-04-13 22:06:05 UTC
Is this still an issue with KDE Frameworks 5.44 or greater?
Comment 14 Rog131 2018-04-14 09:30:15 UTC
(In reply to Nate Graham from comment #13)
> Is this still an issue with KDE Frameworks 5.44 or greater?

Working with the Arch Linux, KF 5.44, KDE Applications 17.12.3, Icon theme KFaentza: https://imgur.com/yoMntIQ
Comment 15 Stephane MANKOWSKI 2018-04-14 10:53:16 UTC
For me, this issue doesn't exist any more. 
I am on KDE Neon.
Comment 16 Nate Graham 2018-04-14 13:39:54 UTC
Thanks!