Subject: Re: [boost] [filesystem] home_directory_path
From: Ravi (lists_ravi_at_[hidden])
Date: 2010-10-23 12:23:12
On Friday 22 October 2010 19:53:52 Patrick Horgan wrote:
> On 10/19/2010 09:06 PM, Ravi wrote:
> > On Tuesday 19 October 2010 09:56:45 Christian Holmquist wrote:
> >> Is there a POSIX equivalent for My Documents?
> >> Without a way to retrieve My Documents, I for one still needs my own
> >> wrapper for that..
> > On newer Linux systems, try $XDG_DOCUMENTS_DIR for an equivalent. Not
> > sure whether it will make it into POSIX.
> Data point, I'm on Ubuntu Meercat which is pretty new
> and doesn't define this. I only get:
> 7136 XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg
One needs to use xdg-user-dirs to obtain the correct values:
Both the premier Linux desktop environments KDE & Gnome support the spec; see,
As far as I can tell, other desktop environments offer partial support as
For you case of Ubuntu:
If you have Gnome installed, you will also have two packages, xdg-user-dirs
and xdg-utils, installed on your system. The documentation accompanying them
should provide complete details.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk