[fpc-pascal] GetAppConfigDir but for temp data?

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Dec 3 14:01:23 CET 2008


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.  :-)


> 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.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list