Originally it was just possible to choose between the GPLv2 and the 3-clause BSD. Now users can also choose between the GPLv3 and AGPLv3 when adding a licence comment to a file. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1331
-- Commit Summary --
* Added possibility to choose between GPLv2 and 3 when adding licence comment to file * Merge my local changes into master * Reformatted a line of code * Renamed some identifiers to clarify with wich values they are handling. * Added possibility to choose AGPLv3 when adding licence comment
-- File Changes --
M data/Makefile.am (4) M data/geany.glade (48) A data/templates/agplv3 (12) M data/templates/fileheader (2) R data/templates/gplv2 (0) A data/templates/gplv3 (12) M src/callbacks.c (32) M src/templates.c (13) M src/templates.h (4)
-- Patch Links --
https://github.com/geany/geany/pull/1331.patch https://github.com/geany/geany/pull/1331.diff
More licenses have been proposed before, and there was not a lot of excitement around it. There is always the argument about which licenses.
Users can always have their own templates with any license by simply copying a file into the right directory and thats probably a better approach (full disclosure, thats how I do it to get Apache) rather than extending the list of hard coded licenses.
The even better way would of course be for the list of licenses to be taken from files in a directory the way the templates are done. This has been suggested on previous PRs extending the hard coded list. Maybe you should look at that solution.
Related: https://gist.github.com/codebrainz/2353163 (probably won't apply cleanly anymore) https://github.com/geany/geany/pull/749
The even better way would of course be for the list of licenses to be taken from files in a directory the way the templates are done.
+1
I agree with @elextr that this is not the right approach. @egnun please tell if you are going to work on the suggested solution (read available licenses from a directory). Otherwise I'll close this in the near future since it's not acceptable in the current form.
github-comments@lists.geany.org