Bug 375465

Summary: Setting icon of root-owned directory overwrites default folder icon
Product: [Applications] dolphin Reporter: Cid Kramer <bug>
Component: view-engine: icons modeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: elvis.angelaccio
Priority: NOR    
Version First Reported In: 16.08.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: stock_folder icon overwrite bug

Description Cid Kramer 2017-01-23 19:18:06 UTC
Created attachment 103605 [details]
stock_folder icon overwrite bug

KDE Plasma Version: 5.8.3
KDE Frameworks Version: 5.26.0
Qt Version: 5.6.2

As a regular user setting an a custom icon through dolphin's folder properties dialog on a root owned folder results in all stock_folder icons being overwritten.

To try and replicate:
 - Right click any root owned folder (e.g /mnt/) and open the Properties dialog
 - Change the default icon to something else
 - refresh dolphins view and the icon becomes default for all folders instead of just the selected folder.
Comment 1 Elvis Angelaccio 2017-01-24 18:27:07 UTC
You are not setting a custom icon (you cannot do that on root-owned folders), you are changing the *default* icon for the inode/directory mimetype (through keditfiletype5, not part of Dolphin but of kde-cli-tools). This is why you see that icon on all the folders, is the intended behavior.