Adding album covers as Folder Icons, but also other things need to work as is [and how I found it while typing this text]

Situation:

  1. I have Multiple media albums separated in directories.
  2. These are in an external HDD, so, dynamically mounted and in multiple OSes

Problem 1:

  • I would like to see album covers on folder icons in Dolphin

Logical Solution

  1. Add icon .png inside the folder
  2. Folder Context Menu → Properties → Select Icon …

Problem 2

  • The folder shows both, Icon and Preview, causing an unwelcome picture in picture on the icon.

Logical Solution 1

  • Remove Preview for folders

Err:

  • I want previews on folders in other places
Attempted Solution:
  • Use “Remember display style for each folder”
    • Doesn’t work for this setting.

Logical Solution 2

  • Put the png in another directory outside the Album directory
    • Like: $ALBUM_DIR/../.icons/icon.png

Problem 3

  • .directory file is using absolute paths. Not good for removable drives
    • Path goes like: /run/media/ulterno/...

Logical Solution

  • Manually enter relative path in the .directory file
    • like ../.icons/icon.png

Err:

  • Dolphin does not fetch icons if relative path has a ..
    • Or really?
      • instead use ./../.icons/icon.png
        • Done. This is the only tip here

Observations

  1. The Desktop Entry specification does not seem to have anything that can be used to say, “Do not show previews for stuff in this directory”
  • So we can’t have this setting work per directory
    • This means that if I had the required package/config for Video thumbnails, I would still be seeing previews on top of the icon in my current case.
  • I’ll be happier if I just overlooked something on their website and something for this actually exists
    • If it does, Dolphin can implement it in the above illustrated case
  1. Maybe Dolphin can use stuff starting with a ..
  • or is that a potential exploit?
  1. In case dolphin does not find the icon specified by the .desktop file, it reverts to an “empty file” icon, with previews unavailable
  • I’d rather it reverted to the default desktop icon, with previews for inner files, still available
    • Not that it helps in this specific case, but it seems like a good fallback to me