Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-02

Patch question.

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Donald Ziesig

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?

Thanks,

Don Z.

Reply by email

Mattias Gaertner
to Donald Ziesig
Show quoted text 7 lines
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

Reply by email

Donald Ziesig
to Mattias Gaertner
Mattias Gaertner wrote 22 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Got it!

Reply by email