volatile config data and XDG Base Directory spec

Kevin Krammer krammer at kde.org
Thu Feb 20 00:17:32 PST 2014


On Thursday, 2014-02-20, 08:57:34, Richard Hartmann wrote:
> On Wed, Feb 19, 2014 at 6:41 PM, Kevin Krammer <krammer at kde.org> wrote:
> > Like the other variables there would be a specified default, so configure
> > (or whatever) could peform the check and fall back to the default or a
> > shell substitution expression could be used, etc.
> 
> Those defaults are internal to programs; all a program would see in this
> case is
> 
>   ./foo --prefix=''
> 
> as shell expansion would happen before that. I know what you meant,
> but the fact is that you can never solely rely on XDG variables in an
> interactive shell.

Sorry, probably using wrong terminology :)

I meant something like
./foo --prefix=${XDG_INSTALL_HOME:-$HOME/.local}

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20140220/26bd6a8b/attachment.pgp>


More information about the xdg mailing list