Hello list,
According to the freedesktop spec, see link at end, typical user data and config paths should be:
XDG_DATA_HOME = ~/.local/share/
XDG_CONFIG_HOME = ~/.config/
I am testing wxPython 4 in a “venv” (python3 -m venv etc.) wherein I used pip to install wxPython on Ubuntu 16.04. (This is all new to me!)
Looking into wx.StandardPaths, I find:
(test1) donn@ddm:~/…/test1/bin$ python
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
import wx
app=wx.App()
sp=wx.StandardPaths.Get()
sp.GetUserDataDir()
‘/home/donn/.python’
sp.GetConfigDir()
‘/etc’
sp.GetUserLocalDataDir()
‘/home/donn/.python’
sp.GetUserConfigDir()
‘/home/donn’
sp.GetLocalDataDir()
‘/etc/python’
I cannot seem to find the strings that agree with the spec paths.
I tried wxPython’s StandardPaths demo, with no better results.
Is this because I am in this “venv” thing? (I’m a total newb to this.)
It’s rather NB for my app to get the Linux paths right. I need to reach into the ~/.config/fontconfig/ directory – which can’t be a hard-coded string.
Currently, I’m using GLib (the “python-gi” package) to fetch the XDG paths, but that’s another depenency on top of wx.
That’s the story, really. Is there something dumb I’m doing, or neglecting, in order to get correct XDG paths in wxPython?
Thanks!
/d