fontforge / fontforge.github.io

The FontForge homepage
http://fontforge.github.io/
107 stars 44 forks source link

Wrong directory for python scripts in documentation, PREFIX and not XDG_CONFIG_HOME #152

Open mgavioli opened 4 years ago

mgavioli commented 4 years ago

Context: FontForge 2020-03-14 AppImage on Linux Mint 19.3 (<= Ubuntu 18.04)

In the https://fontforge.org/docs/scripting/python/fontforge.html documentation page, it says:

“When FontForge starts (if it’s a FontForge with python) it will look at the directories $(PREFIX)/share/fontforge/python and ~/.FontForge/python and attempt to run all files in those directories which end in ".py"...”

On my machine, after several trials and errors, I discovered that the user directory for python scripts is actually ~/.config/fontforge/python (which was already there, I hadn‘t to create it).

Is it an Ubuntu-specific detail or is the documentation out-of-date?

jtanx commented 4 years ago

Just guessing but it might be some xdg thing

ctrlcctrlv commented 4 years ago

Yeah, I was thinking the same, probably $XDG_CONFIG_HOME moved. Really, that should always have been the variable in the docs, not $PREFIX.