53
submitted 1 year ago* (last edited 1 year ago) by Zion@lemmy.world to c/linux@lemmy.ml

Hey fellow Linux enthusiasts.

I'm inching closer to releasing my program for Linux. I'll go into details on what the program is when I release it, as it's not really relevant to this question (IMHO).

Anyway, here are my prerequisites:

  • the program will be free. I will accept donations, but the program will be free to download and use.
  • open source.
  • I'm happy for others to use my code, as long as I'm credited.
  • I do not wish to allow others to use my code in commercial applications (as there will be mobile versions later, and I don't want clones selling it for money, as the mobile versions will also be free.

I'm looking for advice on the best code license to choose, based on my requirements. I'd also like it if my choice of license didn't prohibit my program from potentially being included in package managers.

I'm grateful for any advice. Thank you.

Edit

Thanks for the replies everyone. I've decided to not let my concerns overcome the most important thing of releasing the project as fully open source.

Just going to go with GPLv3 and not worry about the clones that will happen regardless of the license type, if the program becomes popular.

Thank you all for your insight and for helping me come to what I believe to be the best option.

you are viewing a single comment's thread
view the rest of the comments
[-] pavunkissa@sopuli.xyz 18 points 1 year ago

As others have already said, the prohibition of using the code in commercial applications would make the license not open source/free software (as defined by the Free Software Foundation and Open Source Initiative.)

These are some of the most commonly used licenses:

  • MIT - a very permissive license. Roughly says "do anything with this as long as you give attribution"
  • BSD - similar to MIT (note that there are multiple versions of the BSD license)
  • ASL2 - another permissive license. Major difference is that it also includes a patent grant clause. (Mini rant: I often hear that GPL3's patent clause is the reason big companies don't like it. Yet, ASL2 has the very same clause and it's Google's favored license.)
  • GPL - the most popular copyleft license (family). Requires derived works to be licensed under the same terms.
  • LGPL - a variant of the GPL that permits dynamic linking to differently licensed works. Mainly useful for libraries.
  • AGPL - a variant of GPL that specifies that making the software available over a network counts as distribution. (Works around the SaaS loophole. Mainly used for server applications.)
  • Mozilla - a hybrid permissive/copyleft license. I don't fully understand how this one works.

If you want to use a true FLOSS license and your goal is to discourage people from selling it, I'd say the GPL is your best bet. Legit vendors who don't want to give out their source code won't touch GPL code. The non-legit ones won't care no matter what license you choose. Also, iOS App Store terms are not compatible with the GPL so they can't release their stuff there, but you can as long as you hold full copyright to your application.

load more comments (2 replies)
this post was submitted on 27 Oct 2023
53 points (94.9% liked)

Linux

48099 readers
755 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS