Skip to content

Default reported OS to Unix if not Linux (e.g. FreeBSD)#3699

Open
softins wants to merge 1 commit into
jamulussoftware:mainfrom
softins:os-unix
Open

Default reported OS to Unix if not Linux (e.g. FreeBSD)#3699
softins wants to merge 1 commit into
jamulussoftware:mainfrom
softins:os-unix

Conversation

@softins
Copy link
Copy Markdown
Member

@softins softins commented May 20, 2026

Short description of changes

Make default reported OS be Unix (OT_UNIX was already defined, so is not new here) if the build is not Windows, Mac, iOS, Android or Linux. For example FreeBSD.

CHANGELOG: Server: Report OS as Unix if not Windows, Mac, iOS, Android or Linux.

Context: Fixes an issue?

When recently testing a FreeBSD build, it was reporting its OS as Linux. It should say the more generic Unix.

Does this change need documentation? What needs to be documented and how?

Probably not. The OS is not displayed anywhere within Jamulus, so this only affects Jamulus Explorer and similar sites.

Status of this Pull Request

Ready and tested on both Linux and FreeBSD

What is missing until this pull request can be merged?

Only review

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

@softins softins added this to the Release 4.0.0 milestone May 20, 2026
@softins softins added this to Tracking May 20, 2026
@github-project-automation github-project-automation Bot moved this to Triage in Tracking May 20, 2026
Copy link
Copy Markdown
Member

@ann0see ann0see left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible. Not tested but it looks trivial.

Copy link
Copy Markdown
Collaborator

@pljones pljones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this introduces for the first time the possibility of GetOperatingSystem() returning OT_UNIX.

Is there anywhere this will cause problems (i.e. where the other enum values are handled and OT_UNIX has been overlooked)?

@softins
Copy link
Copy Markdown
Member Author

softins commented May 20, 2026

Note that this introduces for the first time the possibility of GetOperatingSystem() returning OT_UNIX.

Is there anywhere this will cause problems (i.e. where the other enum values are handled and OT_UNIX has been overlooked)?

No, the only places where the OT_xxx enum values are used are in GetOperatingSystem() and GetOperatingSystemString(). The value OT_UNIX is correctly accounted for in the latter, but that function is not called from anywhere in the codebase. Nothing else within Jamulus changes its behaviour depending on the OS value set here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

3 participants