Gentoo Archives: gentoo-dev

From: Doug Goldstein <cardoe@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: [gentoo-dev] [RFC] XDG_DATA_DIRS in /etc/env.d
Date: Wed, 17 Jan 2007 04:20:23
Message-Id: 45ADA31B.1010200@gentoo.org
1 Howdy all,
2
3 Diego (Flameeyes) brings about a good point from bug #95867 [1]. An
4 issue that's actually affected me at work with something I'm working on,
5 so I was the perfect person to ask to press this forward.
6
7
8 Basically XDG_DATA_DIRS is where FreeDesktop has standardized the
9 location of icons, desktop entries, directory entries and other misc
10 data. In Gentoo we've hard coded it to
11 XDG_DATA_DIRS=/usr/share:/usr/kde/3.5/share however it's always
12 sub-optimal to hardcode different settings.
13
14 Diego (sorry, don't have anything but English keys) has proposed is
15 creating the ability for XDG_DATA_DIRS to be set via /etc/env.d entries
16 which sounds like the best plan. He's willing to make the change and I'm
17 all for it. Basically this is a request for comments on the idea. Anyone
18 opposed? If not then the change will happen 3 days from this e-mail.
19
20 Here's a summary of what Diego sent me:
21
22 Basically, it's a matter of defining XDG_DATA_DIRS to
23 /usr/share:/usr/kde/3.5/share for the users, not difficult, but I think
24 what happens if a package in /opt wants to have its share directory
25 there too (would be proper, rather than polluting /usr/share space).
26 The quick solution is to set XDG_DATA_DIRS in COLON_SEPARATED, in every
27 env.d file that defines XDG_DATA_DIRS to be safe. I can do it, but it
28 needs to be announced first at least.
29
30 [1] https://bugs.gentoo.org/show_bug.cgi?id=95867
31
32
33 Oh and just to stir the US College Football pot.... Buckeyes suck! Go
34 Gators!
35
36 --
37 Doug Goldstein <cardoe@g.o>
38 http://dev.gentoo.org/~cardoe/
39 --
40 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] [RFC] XDG_DATA_DIRS in /etc/env.d Mart Raudsepp <leio@g.o>