Gentoo Archives: gentoo-dev

From: Alexandre Rostovtsev <tetromino@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Dealing with XDG directories in ebuild environment
Date: Wed, 29 Jan 2014 05:44:53
Message-Id: f5e50cc0-766f-446d-aa14-2dace93270b7@email.android.com
In Reply to: Re: [gentoo-dev] Dealing with XDG directories in ebuild environment by Mike Gilbert
1 On January 28, 2014 12:03:04 PM EST, Mike Gilbert <floppym@g.o> wrote:
2 >Option 3: Unset the variables
3 >
4 >This should cause applications to default to locations under ${HOME}.
5
6 Only those applications that properly comply with standards :)
7
8 For instance, glib did not start respecting ${HOME} until version 2.36 if I remember right; before that, unset XDG_* variables would cause g_get_user_cache_dir() etc. to fall back to something under /root/ no matter where ${HOME} pointed. Which is the main reason why gnome2_environment_reset() was created.