[fpc-pascal] GetAppConfigDir but for temp data?

Michael Van Canneyt michael at freepascal.org
Wed Dec 3 17:36:39 CET 2008

On Wed, 3 Dec 2008, Graeme Geldenhuys wrote:

> On Wed, Dec 3, 2008 at 2:40 PM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
> >> I believe Microsoft has a LocalAppData location, but not sure if that
> >> is also used for GetAppConfigDir(False).
> >
> > Yes it is.
> Umm...   :-(
> >> For example: freedesktop.org (I believe) specifies the following file:
> >>  $HOME/.config/user-dirs.dirs
> >
> > Well, on my system this file does not exist.
> I can't remember ever installing it myself, but it seems to be
> included as part of the following Ubuntu (deb) packages:
>   * xdg-user-dirs
>   * xdg-user-dirs-gtk
> Which also has defaults in the following locations:
>   /etc/xdg/user-dirs.conf
>   /etc/xdg/user-dirs.defaults
> More info here:
>   http://www.freedesktop.org/wiki/Software/xdg-user-dirs
> I don't know which applications actually adhere to these locations
> though, but I'm willing to start.  :-)

On a KDE system: none.

gru: >ls /etc/xdg/user-dirs.conf
ls: /etc/xdg/user-dirs.conf: No such file or directory

> > It's not so easy to find a good compromise.
> I agree, hence my posting here... ;-)
> > I was already not very happy about the change to use ~/.config/appname
> > instead of .appname.
> Oh, I welcomed that change. :-)  I hate having my $HOME directory full
> of hidden files and directories. It's to disorganised for my liking.
> > The fact that the freedesktop.org specs are not very binding, doesn't
> > make it very suitable in my eyes.
> Well at least they are trying to making things easier for desktop
> applications. Using things like 'xdg-open' instead of trying to find
> the correct user preferred application to open HTTP, text files, HTML,
> PDF etc... files.  It's a huge time saver! I wish more and more
> applications will start following these guidelines. Unix and Linux
> systems really need some consistency in the desktop application space.

Well, KDE is a good standard as far as I'm concerned.

Everything is in - more or less - logical places, and it's
very well standardized. 

But it is not the freedesktop standard....


More information about the fpc-pascal mailing list