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

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 30 Jul 2014 10:58:33 +0200

On 29/07/2014 21:59, Axel Dörfler wrote:
> Am 29/07/2014 17:05, schrieb revol@xxxxxxx:
>> +# XXX:TODO
> 
> Could you please use "TODO: " instead of XXX (like the rest of us)? And
> instead of using both, a short sentence what it is supposed to do, and
> why your choice doesn't fit would be much more helpful.

How about now?

I just checked and it seems at least those packages make some use of
those: fish, gnu_classpath...

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.

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 ?

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.

François.


Other related posts: