Include Prewritten Licenses

Registered by Cody Garver

Recently granite received About menu License support.

One has to add the actual text of the license ever so carefully in Vala to avoid weird spacing issues. For example:

construct {
   about_license = """This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License version 3,
as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranties of
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for
more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses>""";
}

It would save some hassle, a small amount of disk space and increase uniformity if granite already included possible licenses and they could be activated by something like:

construct {
   about_license = gplv3;
}

or

construct {
   about_license = gpl2plus;
}

Even better if granite could automatically insert program_name for personalization. For example:

"SomeAppTitle is free software: you can redistribute it and/or modify it..."

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Superseded
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Cody Garver

Related branches

Sprints

Whiteboard

There are so many different licenses, not just GPL, so it would be quite a mess to include them all into Granite. I think the developer should be able to control whatever he puts into the license box, so i dont think this is a good idea ~ jaapz

I like this idea. We can include some popular licenses. And you can always use your custom one. ~grzesiek1e5

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.