Skip to content

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

Closed

Description

@zackees

Found while researching #2317.

libobs/obs-nix-portal-shortcuts.c.h:29 hard-codes #define APP_ID "com.obsproject.Studio". It passes that id to org.freedesktop.host.portal.Registry.Register (line 1002) and stores it as background->app_id (line 1311).

The branded builds set OBS_DESKTOP_ID=io.github.obs_rust.OBSStudioRust (cmake/common/app-identity.cmake). They install io.github.obs_rust.OBSStudioRust.desktop and no com.obsproject.Studio.desktop. So on the .deb and the AppImage, the portal registration names a desktop file that isn't installed.

Expected effect: background global shortcuts fail to register, the log shows [portal] Registering the app id com.obsproject.Studio failed ..., and the hotkeys banner shows AppIdMissing. I haven't reproduced this on a desktop yet.

Fix: take the id from the build's OBS_DESKTOP_ID, using a compile definition on libobs, as frontend/utility/AppIdentity.hpp already does for the frontend. Add a test that a branded build registers io.github.obs_rust.OBSStudioRust and an unbranded one keeps com.obsproject.Studio. Don't edit test/cmocka/test_portal_shortcuts.c.

This is low risk: only the local desktop reaches it.

Activity

  1. added
    bug
    on Oct 25, 2026
  2. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Claiming.

  3. added
    ready
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions