Fwd: why not XDG_PREFIX_HOME

Marc Boocha marcboocha at gmail.com
Wed Aug 30 08:37:44 UTC 2017


Instead having an XDG_BIN_HOME, XDG_CONFIG_HOME, XDG_DATA_HOME, we should
have a single XDG_PREFIX_HOME. This will be located as ~/.local. Since make
install or package manger normal produce these directories, have separate
environmental variables is not needed.

XDG_BIN_HOME is equivalent to XDG_PREFIX_HOME/bin

XDG_CONFIG_HOME is equivalent to XDG_PREFIX_HOME/etc (currently ~/.config
although I feel this is more logical)

XDG_DATA_HOME is equivalent to XDG_PREFIX_HOME/share

This conserves the number of environmental variable used and makes it easy
to add extensions like headers and libraries.



Also since XDG_BIN_DIRS is same as PATH, why is it even needed



Regards

Marc Boocha



*From: *Lennart Poettering <mzkqt at 0pointer.de>
*Sent: *30 August 2017 16:23
*To: *Josh Triplett <josh at joshtriplett.org>
*Cc: *xdg at lists.freedesktop.org
*Subject: *Re: [PATCH v2 2/2] basedir: Add XDG_BIN_HOME



On Di, 29.08.17 13:20, Josh Triplett (josh at joshtriplett.org) wrote:



> On Tue, Aug 29, 2017 at 07:27:50PM +0200, Johannes Löthberg wrote:

> > ---

> > Dropped XDG_BIN_DIRS and add note about architecture-specificity of
HOME

> > due to XDG_BIN_HOME.

>

> This version of the proposal looks great to me, and thank you for

> working on this.

>

> Reviewed-by: Josh Triplett <josh at joshtriplett.org>

>

> If this gets accepted, I would be happy to help work with various

> projects to incorporate support for it. Unlike the other variables, I

> think this only needs special support from software that *installs*

> binaries to $XDG_BIN_HOME (falling back to ~/.local/bin), and not

> software that just wants to access such files (for which it should use

> $PATH).

>

> I don't think this needs to be put in the standard, but people who want

> to make $HOME less architecture-specific might want to set $XDG_BIN_HOME

> to a path that includes the architecture triple, similar to multiarch

> library paths.



Looks fine to me too. IIRC I have commit access to the git repo, hence

I might commit this eventually (ping me in two weeks about this if

nobody else took care of this yet). However, before that happens I

think we should wait for more replies, maybe others have opinions

about this too, for example I am interested in Allison Lortie's

opinions on this (added to CC), I know she has some interest in the

basedir stuff, too.



Allison, any chance you can comment?



Lennart



-- 

Lennart Poettering, Red Hat

_______________________________________________

xdg mailing list

xdg at lists.freedesktop.org

https://lists.freedesktop.org/mailman/listinfo/xdg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20170830/a296f248/attachment.html>


More information about the xdg mailing list