[fpc-pascal] GetTempFileName in Linux

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Oct 7 10:58:32 CEST 2010


On 7 October 2010 10:40, Michael Van Canneyt <michael at freepascal.org> wrote:
>
> Meanwhile I'm still waiting for the first non-fpc app to write it's config
> files in that directory (using Kubuntu, BTW). All other apps I use still
> happily write in ~/.program/

Well, then here it is.... In my ~/.config/ I have the following
non-FPC projects config files

* enchant
* f-spot
* google-chrome
* indicators
* helix
* gnome-disk-utility
* gnome-session
* gnome-mplayer
* gtk-2.0
* softwarecenter
* totem
* vlc
* ubuntuone
* WebIssues
* ...Qt too... there is a Trolltech.conf file, but not in a separate directory


All non-FPC apps Michael!  So the word is spreading. ;-)


> So: Norms ? Thank you, but I'll pass on that and implement what I perceive
> as
> simple and correct :-)

I don't perceive to know all the "unix/linux standards" or "unix
norms"... I do know Midnight Commander (console file manager) is
probably as old as Linux, and it too creates /tmp/mc-graemeg/
directory for any temp files it creates. That's a non-FPC app too. So
I really don't understand your issue with what I said... maybe "norm"
was not the correct word to use then?

PS:
I didn't get the /tmp/<program>-<user>/ information from
freedesktops.org or any other website for that matter, I simply saw it
created by a few linux applications I use, so thought I would mention
it, as it is similar to what Jonathan suggested.


-- 
Regards,
  - Graeme -


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



More information about the fpc-pascal mailing list