Recent

Author Topic: [SOLVED] Shortcut for home directory location  (Read 4184 times)

Jishaxe

  • Full Member
  • ***
  • Posts: 103
  • Hobbist Programmer
[SOLVED] Shortcut for home directory location
« on: April 15, 2011, 07:49:24 pm »
Hello,
I'm making a cross-platform program, and I need to add configuration folders for it.
For Linux I am planning to have the configuration directory as a hidden folder in the user's home directory.
For example, /home/user/.floody
But I need to know what the user's home directory is called. How would I find this out?
I tried just using '~' which on command line equals the user's home directory but it didn't work.
Any ideas?
Thanks
- Jishaxe
« Last Edit: April 15, 2011, 08:12:26 pm by Jishaxe »
Linux Mint 12
Windows 7 Home Premium
______________________
Definition of programmer: An organism that converts caffeine into software.

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Jishaxe

  • Full Member
  • ***
  • Posts: 103
  • Hobbist Programmer
Re: Shortcut for home directory location
« Reply #2 on: April 15, 2011, 08:11:36 pm »
Look here: http://wiki.lazarus.freepascal.org/Multiplatform_Programming_Guide#Configuration_files
Ah excellent, this is what I love about Pascal. Functions for everything :)
Thanks much!
Linux Mint 12
Windows 7 Home Premium
______________________
Definition of programmer: An organism that converts caffeine into software.

 

TinyPortal © 2005-2018