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

Use StandardPath instead of getenv to handled XDG_* environment variables #23

Closed
wengxt opened this issue Nov 19, 2021 · 2 comments
Closed

Comments

@wengxt
Copy link
Member

wengxt commented Nov 19, 2021

https://codedocs.xyz/fcitx/fcitx5/classfcitx_1_1StandardPath.html

This is a utility class provided by Fcitx to handle XDG_* path.

You might want to use StandardPath::Type::PkgData (which is $XDG_DATA/fcitx5) , or just StandardPath::Type::Data.

@naokiri
Copy link
Member

naokiri commented Jun 11, 2022

Thanks for your suggestion @wengxt TIL that method.

@naokiri
Copy link
Member

naokiri commented Sep 15, 2022

Fixed the related part in other branch not to use xdg dirs. Closing.

@naokiri naokiri closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2022
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 a pull request may close this issue.

2 participants