Re: New installation code ( Courtesy of Tom)
- Posted by euphoric (admin) Mar 13, 2013
- 1486 views
Some updated info for Windows installs:
In my version of Windows, the actual path to the directory created by geany is
C:\Users\Owner\AppData\Roaming\geany
That path doesn't exist until geany is run once. You should tell users to run geany once so it can write those default files/dirs. This way you can confirm that whatever path they provide for installing these forms is correct.
The path to geany config files needs to be gotten from getenv("APPDATA"), instead of getenv("HOME").
APPDATA can be used from Windows XP on up. On my Windows XP box, it returns
C:\Documents and Settings\user\Application DataOn Windows 7 it returns
C:\Users\Owner\AppData\Roaming\geanyThe Windows file path code need only be this:
constant GEANY_DIR = getenv( "APPDATA" ) & SLASH & "geany"
Ask if ya gots questions...