Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mgavioli opened this issue Sep 14, 2020 · 2 comments

Comments

@mgavioli
Copy link

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
Copy link
Contributor

jtanx commented Sep 14, 2020

Just guessing but it might be some xdg thing

@ctrlcctrlv
Copy link
Member

ctrlcctrlv commented Sep 14, 2020

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

@ctrlcctrlv ctrlcctrlv transferred this issue from fontforge/fontforge Sep 14, 2020
@ctrlcctrlv ctrlcctrlv changed the title Wrong directory for python scripts in documentation? Wrong directory for python scripts in documentation, PREFIX and not XDG_CONFIG_HOME Sep 14, 2020
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

No branches or pull requests

3 participants