Skip to content

XDG Portal requires service change #4776

@psyke83

Description

@psyke83

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

The XDG Portal is not correctly identifying Sunshine as the current streaming application via native packages. The main reason is that the service cannot identify Sunshine via the systemd service name (see context link).

In order to resolve this, we need to take several steps.

  • Normalize all packaging to use the FQDN naming convention everywhere (e.g. for icons), not just for the Flatpak package.
  • Rename the Sunshine service. At a minimum, we should consider renaming the unprivileged unit to app-sunshine to enable Portal recognition, but the real name should technically follow the FQDN pattern: app-dev.lizardbyte.app.Sunshine. Perhaps we can also install a service alias that's simply named sunshine for legacy support? Or alternatively, we can rename the privileged unit back to sunshine and just use the new name for the unprivileged unit.

@ReenigneArcher I'm willing to implement the changes but I'd need feedback on the direction you'd like to go with this.

Expected Behavior

XDG Portal should recognize Sunshine correctly. In KDE, you should see "Sunshine" appear as the streaming application in the XDG notification icon, and the generic red icon should possibly use Sunshine's real icon too (but I'm not sure how to fix the latter yet).

Additional Context

https://systemd.io/DESKTOP_ENVIRONMENTS/

Host Operating System

Linux

Operating System Version

Fedora 43

Architecture

amd64/x86_64

Package

n/a

GPU Type

AMD

GPU Model

RX 6600

GPU Driver/Mesa Version

25.3.5

Capture Method

XDG Portal Grab (Linux)

Apps

Log output

Online logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions