Skip to content

Naming Spec Tools#1418

Closed
sivy wants to merge 6 commits intoelementary:mainfrom
sivy:naming-spec-tools
Closed

Naming Spec Tools#1418
sivy wants to merge 6 commits intoelementary:mainfrom
sivy:naming-spec-tools

Conversation

@sivy
Copy link

@sivy sivy commented Feb 18, 2026

After looking for "first sources" for the FreeDesktop.org icon naming specs, we tracked down the git repo where the spec is hosted:

https://gitlab.freedesktop.org/xdg/default-icon-theme/

This adds a new script called naming_spec_tools.py. This script can pull this file, parse the icon names and the different sections, and then build a JSON structure with all the spec sections and icon names. This structure is saved in icon-naming-spec.json.

$ cd scripts/
$ python3 naming_spec_tools.py

Passing -s|--save to the script will save the fetched file in icon-naming-spec.xml so we have a reference copy.

$ cd scripts/
$ python3 naming_spec_tools.py -s

Both icon spec files (when updated) should be committed so that they can be used by other tools.

After looking for "first sources" for the FreeDesktop.org icon naming specs, we tracked down the git repo where the spec is hosted:

https://gitlab.freedesktop.org/xdg/default-icon-theme/

This adds a new script called `naming_spec_tools.py`. This script can pull this file, parse the icon names and the different sections, and then build a JSON structure with all the spec sections and icon names. This structure is saved in `icon-naming-spec.json`.

Passing `-s|--save` to the script will save the fetched file in `icon-naming-spec.xml` so we have a reference copy.

Both icon spec files (when updated) should be committed so that they can be used by other tools.
@danirabbit danirabbit requested a review from a team February 18, 2026 18:15
@sivy
Copy link
Author

sivy commented Feb 18, 2026

Note: while the script in #1340 works, using the JSON form of the naming specs from this script would save some code in that script.

@sivy sivy closed this Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant