Skip to content

libobs: Register the build's desktop id with the shortcuts portal - #2347

Merged
zackees merged 2 commits into
masterfrom
fix/portal-app-id
Oct 25, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/portal-app-id

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Closes #2346.

obs-nix-portal-shortcuts.c.h hard-coded APP_ID "com.obsproject.Studio". The branded .deb and AppImage install io.github.obs_rust.OBSStudioRust.desktop, so the portal Register call named a desktop file that isn't installed.

  • libobs (Linux and FreeBSD, next to the portal source) now defines OBS_PORTAL_APP_ID="${OBS_DESKTOP_ID}" PRIVATE on libobs-objects.
  • The source uses that define when it is set and falls back to com.obsproject.Studio otherwise. The unchanged cmocka test_portal_shortcuts compiles the source itself without the define, so its com.obsproject.Studio assertions still hold. No C tests or public headers were edited.

RED, then GREEN: the new ci/test_portal_app_id.py preprocesses the real APP_ID block with and without the define, and checks that both host cmake files pass the id. ./lint passes.

…EEN, #2346)

The branded .deb and AppImage install io.github.obs_rust.OBSStudioRust.desktop,
but the portal client registered com.obsproject.Studio. libobs now gets
OBS_DESKTOP_ID as OBS_PORTAL_APP_ID; without it (the cmocka test build) the
id stays com.obsproject.Studio.
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.

bug: GlobalShortcuts portal registers upstream's app id in the branded .deb and AppImage

1 participant