[fpc-pascal] fpmake: output directories

Michael Van Canneyt michael at freepascal.org
Wed Jun 3 08:33:26 CEST 2009



On Wed, 3 Jun 2009, Giuliano Colla wrote:

> Michael Van Canneyt ha scritto:
>> 
>> 
>> On Tue, 2 Jun 2009, Graeme Geldenhuys wrote:
>> 
>>> 2009/6/2 Michael Van Canneyt <michael at freepascal.org>:
>>>> 
>>>> ~user/.fppkg/build/
>>>> 
>>>> (or something like it)
>>> 
>>> 
>>> Possibly the $HOME/.local/ directory.  I have the following structure
>>> in there, but I tried to find out on freedesktop.org or linux
>>> standands what is recommend regarding the ~/.local/ directory, but I
>>> couldn't find any documentation on it.
>> 
>> What is the .local directory ? I don't have one, and I never heard of it.
>> If it is again a so-called standard by freedesktop, then it's a nono.
>> 
> Sorry, but $HOME/.local IS a so-called standard by freedesktop:
>
> http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html
>
> States that user specific data files should be stored in a directory which 
> defaults to $HOME/.local/share :-( (as opposed to user specific configuration 
> files which should go into $HOME/.config). But one must be careful to tell 
> apart essential from non-essential data files, because user specific 
> non-essential data files should be stored in $HOME/.cache.
> I gather from the above that user specific useless data files should be 
> stored in $HOME/.shit (if not otherwise specified in $XDG_SHIT_HOME). ;-)
> It appears that they're facing the mission of "avoiding the $HOME directory 
> cluttered by dot files" (as stated somewhere else), by the clever device of 
> adding more dot files.
>> So .fppkg it is by default, and it remains so. Good old unix custom.
>> 
> Avery wise choice.

I don't think the 'freedesktop' standard is much of a standard.

The ONLY programs that I know of that write to ~/.config are the
programs using the sysutils GetAppConfigDir.

None of the installed programs on my system use it. KDE writes to
.kde4/whatever and all the rest writes to ~/.someprogramconfigfile.

Like I said, it was a mistake to have followed the 'standard'.

Michael.



More information about the fpc-pascal mailing list