Re: [Lazarus] Patch question.

2013-02-26 Thread Mattias Gaertner
On Tue, 26 Feb 2013 17:05:59 -0500
Donald Ziesig  wrote:

> Hi All!
> 
> I have finished the code needed to use xml to specify templates for some 
> of the code completion functions.  I was about to create a patch till I 
> remembered that the xml file is in ~/.lazarus.  AFAICT this will not go 
> into the patch, but should be put into .lazarus on install or build. 
> What is the proper way of doing this?

Check on start if the config file exists. If yes, load it, if not,
create defaults, e.g. copy a file from the lazarus directory.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch question.

2013-02-26 Thread Donald Ziesig

On 02/26/2013 05:17 PM, Mattias Gaertner wrote:

On Tue, 26 Feb 2013 17:05:59 -0500
Donald Ziesig  wrote:


Hi All!

I have finished the code needed to use xml to specify templates for some
of the code completion functions.  I was about to create a patch till I
remembered that the xml file is in ~/.lazarus.  AFAICT this will not go
into the patch, but should be put into .lazarus on install or build.
What is the proper way of doing this?

Check on start if the config file exists. If yes, load it, if not,
create defaults, e.g. copy a file from the lazarus directory.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



Got it!

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus