From: Guido S. <gu...@ar...> - 2004-03-25 23:37:16
|
Am 26.03.2004 01:02:16 schrieb(en) Jonatan Liljedahl: > On Thu, 25 Mar 2004 17:47:18 -0500 > Matthew Weier OPhinney <mat...@we...> wrote: > > > BTW, what's this ~/.config stuff? Is it standard? Why not > ~/Choices/ > > > as all other ROX apps?? > > > > My memory's a bit fuzzy, but I believe freedesktop.org has proposed > > the$HOME/.config directory as the repository for application > > preferences. Thomas has noted before that ROX may change to that > > system in the future as ROX has been an early adopter of > > freedesktop.org standards, but that obviously hasn't happened yet. =20 > I > > expect GS is trying to follow it with OroboROX. >=20 > Ok, but shouldn't it follow the $CHOICESPATH variable, since it's a > ROX > application? It does. ~/.config/ is the freedesktop.org (XDG) default, when =20 XDG_CONFIG_HOME is unset. To make it ROX compatible, I set XDG_CONFIG_HOME to the first path element of CHOICESPATH. And only when CHOICESPATH is empty as well, I use ~/.config as the fallback. if [ x"$XDG_CONFIG_HOME" =3D x"" ] ; then if [ x"$CHOICESPATH" =3D x"" ] ; then XDG_CONFIG_HOME=3D"~/.config" else XDG_CONFIG_HOME=3D`echo $CHOICESPATH | sed s/:.*//` fi export XDG_CONFIG_HOME fi |