Skip to content

frontend: title the main window "OBS Studio Rust <version>" (#1983) - #1985

Merged
zackees merged 2 commits into
masterfrom
fix/1983-window-title
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/1983-window-title

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Refs #1983

The main window title now reads "OBS Studio Rust ", followed as before by - Profile: … - Scenes: … and the safe-mode and portable-mode suffixes.

Commits

  • RED 37fe49929: test/cmocka/test_product_title.c (registered in test/cmocka/build/test-graph.json) plus an obs_product_title() stub in frontend/utility/product-name.{h,c.h}. Built locally against the stub, all 4 cases fail: release_build_shows_release_version, dev_build_shows_newest_tag_with_dev_suffix, dev_build_without_tag_is_dev, truncates_and_terminates.
  • GREEN 2c5749515:
    • Helper: frontend/utility/product-name.c.h and its PCH.
    • Title bar: OBSBasic::UpdateTitleBar() calls the helper; the widgets PCH includes product-name.h.
    • Version source: frontend/CMakeLists.txt runs git describe at configure time, and rust/obs-build/src/frontend.rs does the same for the Cargo build.
    • Ledger: a line in docs/features.md.
    • Results: test_product_title 4/4 and the unchanged test_product_name 3/3, built with -Wall -Wextra -Werror -Wformat=2. ./lint passes.

Decisions (as in the claim comment on #1983)

  • Release builds: OBS_RUST_RELEASE_VERSION gives e.g. OBS Studio Rust 0.1.0-beta.20261023.
  • Dev builds: git describe --tags --long --match 'obs-studio-rust-v*' gives e.g. OBS Studio Rust 0.1.0-beta.20261023-dev+78-g4527fbf78. Without git or a reachable tag, the title is OBS Studio Rust dev.
  • "based on OBS …": dropped from the title. It stays in --version and Help > About.
  • Studio Mode: no longer inserts "Studio ", since the name already contains it.
  • Non-Rust-brand builds: keep the upstream title (#else branch unchanged).
  • --version is unchanged: GetProductString/obs_product_string are untouched, so asset_metadata.py, test-appimage.sh EXPECT_RUST_VERSION, release-rust.yaml and ci/test_appimage_assets.py are untouched too.

Not observed in the real app

./native-build build fails on this host before reaching the frontend: obs-util needs gio-2.0, which isn't installed. I couldn't run the app under xvfb, so this PR says Refs and not Fixes. Someone with a working app build should check the title with xprop -root _NET_ACTIVE_WINDOW / wmctrl -l before closing #1983.

#1983)

obs_product_title() is a stub; test_product_title fails all 4 cases:
release version, dev version from the newest obs-studio-rust-v* tag,
"dev" without a tag, and truncation.
Release builds show OBS_RUST_RELEASE_VERSION; other builds show the newest
obs-studio-rust-v* tag from a configure-time git describe as
<ver>-dev+<n>-g<sha>, or "dev" without a tag. CMake and the Cargo frontend
build both pass the describe string. --version and Help > About keep
"OBS-Studio-Rust <ver> (based on OBS <ver>)".
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit c1351a6 Oct 23, 2026
31 checks passed
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 24, 2026
…bs-rust#2162) (obs-rust#2168)

* ci: test-appimage.sh must find the "OBS Studio Rust" main window (RED, obs-rust#2162)

* appimage: test-appimage.sh finds the "OBS Studio Rust" main window (obs-rust#2162)

obs-rust#1985 retitled the main window "OBS Studio Rust <version>"; the first-start
check matched only "OBS-Studio-Rust", so it never found the window and
the first-start scenarios failed on every distro. Accept both titles.

Fixes obs-rust#2162
@zackees
zackees deleted the fix/1983-window-title 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