Fwd: why not XDG_PREFIX_HOME

Marc Boocha <[email protected]>
Newsgroups gmane.linux.xdg.devel
Message-ID <CALi_gKdY=8bHMDJj-kvpVzn9vZ6Jm4DbZCUC3jRZVRpaR5A9RQ@mail.gmail.com>
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 <[email protected]>
*Sent: *30 August 2017 16:23
*To: *Josh Triplett <[email protected]>
*Cc: *[email protected]
*Subject: *Re: [PATCH v2 2/2] basedir: Add XDG_BIN_HOME



On Di, 29.08.17 13:20, Josh Triplett ([email protected]) 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 <[email protected]>

>

> 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

[email protected]

https://lists.freedesktop.org/mailman/listinfo/xdg

_______________________________________________
xdg mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xdg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.