Perhaps you could change copyright law to require either public source code or source code escrow before software could be eligible for copyright protection. Plus some default rights, like right to modification, rebuild and reinstallation for individuals.
What has 2023 do to with anything? The four essential freedoms for software were written more than thirty years ago and today are more relevant than ever: https://www.gnu.org/philosophy/free-sw.en.html#four-freedoms
To answer your question: any government mandated software, or software used, or bought, or promoted by, or paid for by the government should be free software.
As for the law, any software no longer for sale, or older than 10 years old should lose all copyright/IP protection, which ever happens first. Anyone should be able to write/support a Windows XP,7 or 8 clone at this point, along with Office, Exchange, etc. up to 2012
--- Warning --
Strong message (rant) to follow
Uppity programmers calling themselves software "engineers" act in almost totally the opposite manner of a true engineering discipline. They hold "legacy" in contempt, and break things in the name of "progress" or "safety" at odds with their stated goals. They ignore the lessons of history, and keep re-inventing the same things every decade or two.
You can still plug a BC-232 radio manufactured in the late 1940s into the wall and receive broadcast signals.
You're effectively prohibited from running a web browser or telephone from 10 years ago because of planned obsolesce. This needs to stop!
I love the idea of source code escrow as a requirement for copyright protection. If it were up to me, a DRM free copy of every work would need to be submitted to the copyright office for full copyright protection and that agency would publish and make available every work at copyright.gov automatically the moment the copyright on that work lapsed (ideally something that should happen in less than 10 years) while the works still protected would display a countdown clock showing the time until it's released to the public domain along with a list of reachable contacts for the copyright holders so people know who to contact if they don't want to wait.
EDIT: appartently there was a ruling in the Court of Justice of European Union on this
https://www.lexology.com/library/detail.aspx?g=f5b1193c-f423...
1. Software would become entirely non-copyrightable
2. Software that infringes on a patent claim would be prima facie evidence of the claim's invalidity
3. Distributing any software in a way that would violate the AGPLv3 would be illegal (with the exception that if you had access to binaries but not the full corresponding source for a program prior to this change, you could still freely distribute everything you do have afterwards), and both upstream authors and downstream recipients would have standing to sue over it
I don't think right-to-repair for commercially supported software makes sense. If you care about the right to modify and rebuild, put source access into the contract. But you have a commercial relationship, so the vendor is supposed to listen to your feature and bugfix requests. If they're unwilling to consider source access or feature/bugifx requests, don't buy from them, it sounds like they don't care about your business.
2. Mandate release of software developed using public funds under AGPL (e.g. government portals) or GPL, with obvious exception carved out for defense projects
3. Mandate implementation of manual overrides that allow owners to flash unsigned firmware/software on their devices, similar to Android phones
4. Legalize and ban EULA prohibitions against reverse engineering
5. Legalize and ban EULA prohibitions against unauthorized changes, carve out exceptions where strictly necessary (e.g. medical equipment and equipment critical to public safety, online games?)
The Garmin Connect cookie banner was broken. It kept showing up on all reloads despite acceptance. In the end the add blocker fixed the problem by entirely removing the cookie banner.
I would say that is the first level of right to repair for software.
Nir is there licenses for specific purposes, such as companies wanting to create their own franchise or a content creator wanting to use said copyright once in their work (even if you got permission you can be liable).
You repair physical stuff because parts wear out. Software doesn't wear out.
In my opinion, it would be better to set a support window where a company must provide updates to fix flaws or security issues based on the type of device. OSes could be 5 years, safety recalls for vehicles are already covered. I'm not sure any action is really necessary on this.
This should absolutely be banned. Either release the source code, or build the code yourself.
There is no need to throw away a perfectly good scanner, which you can still get repaired, simply because the company prefers to sell you a new one.