public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [RFC] XDG_DATA_DIRS in /etc/env.d
@ 2007-01-17  4:16 Doug Goldstein
  2007-01-17  5:17 ` Mart Raudsepp
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Goldstein @ 2007-01-17  4:16 UTC (permalink / raw
  To: Gentoo Dev

Howdy all,

Diego (Flameeyes) brings about a good point from bug #95867 [1]. An 
issue that's actually affected me at work with something I'm working on, 
so I was the perfect person to ask to press this forward.


Basically XDG_DATA_DIRS is where FreeDesktop has standardized the 
location of icons, desktop entries, directory entries and other misc 
data. In Gentoo we've hard coded it to 
XDG_DATA_DIRS=/usr/share:/usr/kde/3.5/share however it's always 
sub-optimal to hardcode different settings.

Diego (sorry, don't have anything but English keys) has proposed is 
creating the ability for XDG_DATA_DIRS to be set via /etc/env.d entries 
which sounds like the best plan. He's willing to make the change and I'm 
all for it. Basically this is a request for comments on the idea. Anyone 
opposed? If not then the change will happen 3 days from this e-mail.

Here's a summary of what Diego sent me:

Basically, it's a matter of defining XDG_DATA_DIRS to 
/usr/share:/usr/kde/3.5/share for the users, not difficult, but I think 
what happens if a package in /opt wants to have its share directory 
there too (would be proper, rather than polluting /usr/share space).
The quick solution is to set XDG_DATA_DIRS in COLON_SEPARATED, in every 
env.d file that defines XDG_DATA_DIRS to be safe. I can do it, but it 
needs to be announced first at least.

[1] https://bugs.gentoo.org/show_bug.cgi?id=95867


Oh and just to stir the US College Football pot.... Buckeyes suck! Go 
Gators!

-- 
Doug Goldstein <cardoe@gentoo.org>
http://dev.gentoo.org/~cardoe/
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] [RFC] XDG_DATA_DIRS in /etc/env.d
  2007-01-17  4:16 [gentoo-dev] [RFC] XDG_DATA_DIRS in /etc/env.d Doug Goldstein
@ 2007-01-17  5:17 ` Mart Raudsepp
  0 siblings, 0 replies; 2+ messages in thread
From: Mart Raudsepp @ 2007-01-17  5:17 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 2681 bytes --]

On Tue, 2007-01-16 at 23:16 -0500, Doug Goldstein wrote:
> Howdy all,

Hey,

> Diego (Flameeyes) brings about a good point from bug #95867 [1]. An 
> issue that's actually affected me at work with something I'm working on, 
> so I was the perfect person to ask to press this forward.
> 
> 
> Basically XDG_DATA_DIRS is where FreeDesktop has standardized the 
> location of icons, desktop entries, directory entries and other misc 
> data. In Gentoo we've hard coded it to 
> XDG_DATA_DIRS=/usr/share:/usr/kde/3.5/share however it's always 
> sub-optimal to hardcode different settings.
> 
> Diego (sorry, don't have anything but English keys) has proposed is 
> creating the ability for XDG_DATA_DIRS to be set via /etc/env.d entries 
> which sounds like the best plan. He's willing to make the change and I'm 
> all for it. Basically this is a request for comments on the idea. Anyone 
> opposed? If not then the change will happen 3 days from this e-mail.

I'm all for that.
See also bug about KDE applications not showing up in GNOME menus
https://bugs.gentoo.org/show_bug.cgi?id=139697
This would probably get solved then as well, as /usr/kde/3.5/share would
be included in XDG_DATA_DIRS in Gnome sessions as well. Currently there
is no XDG_DATA_DIRS set at all in a Gnome session, so just the
default /usr/share is looked at, and setting it in startup scripts
sounds just wrong.
I'm not sure how you'd approach this when multiple kde versions are
present (like /usr/kde/3.4 AND /usr/kde/3.5 in the past), in what order
they'd be there, how you ensure said order and so on. In Gnome land
there is no such SLOTting.

> Here's a summary of what Diego sent me:
> 
> Basically, it's a matter of defining XDG_DATA_DIRS to 
> /usr/share:/usr/kde/3.5/share for the users, not difficult, but I think 
> what happens if a package in /opt wants to have its share directory 
> there too (would be proper, rather than polluting /usr/share space).
> The quick solution is to set XDG_DATA_DIRS in COLON_SEPARATED, in every 
> env.d file that defines XDG_DATA_DIRS to be safe. I can do it, but it 
> needs to be announced first at least.
> 
> [1] https://bugs.gentoo.org/show_bug.cgi?id=95867
> 
> 
> Oh and just to stir the US College Football pot.... Buckeyes suck! Go 
> Gators!

This gives me some bad memories with certain spyware. And I don't get
what you americans find in American Football. Go-go soccer! (football
really, but I can't say that when americans are reading :(  )
How's that for stirring up the pot? :p

-- 
Mart Raudsepp
Gentoo Developer
Mail: leio@gentoo.org
Weblog: http://planet.gentoo.org/developers/leio

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-17  5:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-17  4:16 [gentoo-dev] [RFC] XDG_DATA_DIRS in /etc/env.d Doug Goldstein
2007-01-17  5:17 ` Mart Raudsepp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox