Gentoo Archives: gentoo-dev

From: Mart Raudsepp <leio@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] XDG_DATA_DIRS in /etc/env.d
Date: Wed, 17 Jan 2007 05:21:30
Message-Id: 1169011031.30265.6.camel@localhost
In Reply to: [gentoo-dev] [RFC] XDG_DATA_DIRS in /etc/env.d by Doug Goldstein
1 On Tue, 2007-01-16 at 23:16 -0500, Doug Goldstein wrote:
2 > Howdy all,
3
4 Hey,
5
6 > Diego (Flameeyes) brings about a good point from bug #95867 [1]. An
7 > issue that's actually affected me at work with something I'm working on,
8 > so I was the perfect person to ask to press this forward.
9 >
10 >
11 > Basically XDG_DATA_DIRS is where FreeDesktop has standardized the
12 > location of icons, desktop entries, directory entries and other misc
13 > data. In Gentoo we've hard coded it to
14 > XDG_DATA_DIRS=/usr/share:/usr/kde/3.5/share however it's always
15 > sub-optimal to hardcode different settings.
16 >
17 > Diego (sorry, don't have anything but English keys) has proposed is
18 > creating the ability for XDG_DATA_DIRS to be set via /etc/env.d entries
19 > which sounds like the best plan. He's willing to make the change and I'm
20 > all for it. Basically this is a request for comments on the idea. Anyone
21 > opposed? If not then the change will happen 3 days from this e-mail.
22
23 I'm all for that.
24 See also bug about KDE applications not showing up in GNOME menus
25 https://bugs.gentoo.org/show_bug.cgi?id=139697
26 This would probably get solved then as well, as /usr/kde/3.5/share would
27 be included in XDG_DATA_DIRS in Gnome sessions as well. Currently there
28 is no XDG_DATA_DIRS set at all in a Gnome session, so just the
29 default /usr/share is looked at, and setting it in startup scripts
30 sounds just wrong.
31 I'm not sure how you'd approach this when multiple kde versions are
32 present (like /usr/kde/3.4 AND /usr/kde/3.5 in the past), in what order
33 they'd be there, how you ensure said order and so on. In Gnome land
34 there is no such SLOTting.
35
36 > Here's a summary of what Diego sent me:
37 >
38 > Basically, it's a matter of defining XDG_DATA_DIRS to
39 > /usr/share:/usr/kde/3.5/share for the users, not difficult, but I think
40 > what happens if a package in /opt wants to have its share directory
41 > there too (would be proper, rather than polluting /usr/share space).
42 > The quick solution is to set XDG_DATA_DIRS in COLON_SEPARATED, in every
43 > env.d file that defines XDG_DATA_DIRS to be safe. I can do it, but it
44 > needs to be announced first at least.
45 >
46 > [1] https://bugs.gentoo.org/show_bug.cgi?id=95867
47 >
48 >
49 > Oh and just to stir the US College Football pot.... Buckeyes suck! Go
50 > Gators!
51
52 This gives me some bad memories with certain spyware. And I don't get
53 what you americans find in American Football. Go-go soccer! (football
54 really, but I can't say that when americans are reading :( )
55 How's that for stirring up the pot? :p
56
57 --
58 Mart Raudsepp
59 Gentoo Developer
60 Mail: leio@g.o
61 Weblog: http://planet.gentoo.org/developers/leio

Attachments

File name MIME type
signature.asc application/pgp-signature