[Geany-Devel] Create project files from within a plugin
lars_paulsen at xxxxx
Mon Feb 19 06:29:40 UTC 2018
thanks for the answer.
Yes, I wanted to create it programmatically. But I really only meant to
create a project file. Not open it and make it the actual project.
But there does not seem to be such a clear separation of project GUI and
So I guess it's better to create/write my on key file. Also it might
need to be adjusted if the contents of a standard geany project change.
On 18.02.2018 22:05, Matthew Brush wrote:
> On 2018-02-18 10:52 AM, Lars Paulsen wrote:
>> Hi All,
>> is there a API for plugins which lets a plugin create project files
>> and fill in some values?
>> I do NOT want to add plugin specific data to an existing project.
>> I want to create a new project with some meaningful data (the
>> fields/values of geany's own project data).
>> After that I would add plugin specific data to it.
> There is nothing in the API for this as far as I know. You could just
> write your own keyfile, and open that. If you wanted to open it
> programmatically you would have to expose a function like maybe
> `project_load_file_with_session` in the plugin API.
> Matthew Brush
> : https://github.com/geany/geany/blob/master/src/project.c#L268
> Devel mailing list
> Devel at lists.geany.org
More information about the Devel