Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Files Files
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 540
    • Issues 540
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • FilesFiles
  • Issues
  • #196

Closed
Open
Created Jan 09, 2018 by Jehan@JehanDeveloper

Replicate images used as icons in XDG_CONFIG_HOME or a similar location

We had an issue with someone using custom icons for folders quite massively, then the icons all broke when the image folders got relocated. https://girinstud.io/news/2018/01/how-to-fix-broken-custom-file-icons-gio-nautilus/

This is not nice because: (1) You can't expect people to never ever change their organization. So custom icons should not rely on the images never moving/being renamed. (2) When this happens, you may have hundreds of broken icons and no easy way to fix them. You could do one by one in Nautilus, but even this doesn't give you the name of the previous icon (when used as status as was the case here, you want to know the previous icon name).

Only way out of it was by a script calling gio directly. But that's not for everyone to be done.

I propose that Nautilus actually save a copy of the image (or smaller "thumbnails" version of it) used as icons under a subfolder of $XDG_CONFIG_HOME, using some hash to find if the image has previously being used (similarly to how thumbnails are saved in $XDG_CACHE_HOME).

That could be $XDG_CONFIG_HOME/icons/ or something similar (a generic name would allow for further Freedesktop standardization). Subsequentely the metadata could still point to the original path, but would fallback to use the copy in $XDG_CONFIG_HOME/icon when the original path doesn't exist anymore.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking