[haiku-commits] Re: haiku: hrev47593 - data/etc/profile.d

  • From: pulkomandy <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 30 Jul 2014 11:03:37 +0200

> It seems glib has some more in glib/gutils.c like XDG_DESKTOP_DIR but
> those are probably part of some draft specs I didn't find, and it seems
> to already be implemented for Haiku :)
> We should probably fix the CONFIG and DATA ones in glib to use
> find_directory() as well, but it seems pkg-config at least has its own
> copy, so we're not sure the fix will propagate.

only pkg_config does that, because otherwise it would need glib to
build, and glib needs pkgconfig to build. So they build a subset of the
glib and statically link it if no dynamically linkable version is found.

I don't think any other project does that.

> 
> I don't know if it's a good idea to use it yet. It will make more apps
> use the proper locations, but then it will hide the places where we
> should fix them properly, OTOH usually this kind of code ends up ugly,
> not even using find_directory() and friends, what do you think ?

When I fix these things, I use find_directory. I don't know about you
and others.

> 
> The RUNTIME_DIR stuff we probably don't need for now.
> It's mainly to separate user's data from /tmp which is writable by
> anyone, and so is a security risk.

The problem with that is the "for now". Starting to have an
user-specific tmp now (even for native apps) with matching FIND_*
constants may be a good idea.

-- 
Adrien.

Other related posts: