Skip to content

frontend: obs-main startup checks behind per-OS host headers (#865) - #2170

Merged
zackees merged 3 commits into
masterfrom
facade/865-startup
Oct 24, 2026
Merged

zackees merged 3 commits into
masterfrom
facade/865-startup

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #865 (slice 2 of 3). Stacked on #2167: review only the last two commits.

RED: the test commit extends test_frontend_obs_main_host, which fails to compile because frontend/utility/obs-main-macos.hpp doesn't exist yet.
GREEN: obs-main's startup steps call hooks that the self-guarded host headers in the obs-main PCH define, with portable defaults in obs-main.

  • Windows (obs-main-windows.hpp): localtime_s, the wide log path, high-DPI rounding, the run-once mutex, the Wine prompt, and the Rust app identity readback.
  • macOS (obs-main-macos.hpp): the NSApplication subclass and the bundle check, the icon check, and the permissions dialog.
  • Unix desktops (obs-main-posix.hpp, __unix__): the qt5ct theme workaround.
  • Linux (obs-main-linux.hpp): the ChromeOS container refusal.

ci/test_macos_icon_focus.py and ci/test_app_config_identity.py splice the post-log startup block from obs-main, so they now also splice the host's obs_main_host_verify_startup. Their assertions are unchanged.

Behavior is unchanged with one exception: the ChromeOS check now runs only where __linux__ is defined, rather than on every non-Windows, non-Apple, non-FreeBSD system. ChromeOS containers are Linux.

Ratchet: 112 findings, down from 123.

@zackees
zackees added this pull request to the merge queue Oct 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 24, 2026
@zackees
zackees force-pushed the facade/865-startup branch from 37d7ee0 to 0fbd599 Compare October 24, 2026 15:13
@zackees
zackees enabled auto-merge October 24, 2026 15:13
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 36505ad Oct 24, 2026
35 checks passed
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Coordinator: master is red on macOS Tier 2 since this landed (36505ad). The libobs / libobs-c-reference build compiles frontend/utility/obs-main-macos.hpp as C and fails: obs-main-macos.hpp:27:2: error: call to undeclared function 'InstallNSApplicationSubclass', then isInBundle, blog, throw and MacPermissionStatus (merge-group run 40109122884, job 120918156623). It ejected #2171, which doesn't touch frontend. Something on the macOS side seems to pick up *-macos.* host files by name. Every PR that runs macOS Tier 2 will be ejected until this is fixed; could you take it?

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Coordinator: I opened #2186 to fix this. It changes test_frontend_obs_main_host to register on Linux only (if(OS_LINUX)), since on macOS the macOS host header is active. Auto-merge is on.

rdoupe pushed a commit to rdoupe/obs-studio that referenced this pull request Oct 24, 2026
On macOS obs-main-macos.hpp is active, so compiling it as C in the
cmocka test fails (InstallNSApplicationSubclass, blog, throw undeclared)
and macOS Tier 2 has been red since obs-rust#2170 (merge-group run 40109122884).
@zackees
zackees deleted the facade/865-startup branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant