flatpak / xdg-desktop-portal

Desktop integration portal
https://flatpak.github.io/xdg-desktop-portal/
GNU Lesser General Public License v2.1
572 stars 188 forks source link

Type of session_handle in the response of CreateSession differs from documentation #1359

Open kb-1000 opened 4 months ago

kb-1000 commented 4 months ago

Operating System

Fedora 40

XDG Desktop Portal version

1.18

XDG Desktop Portal version (Other)

No response

Desktop Environment

KDE

Desktop Environment (Other)

No response

Expected Behavior

It should return an object path as specified in the documentation (o type)

Current Behavior

It returns a string (s type)

Steps to Reproduce

  1. Call CreateSession on RemoteDesktop, ScreenCast, GlobalShortcuts, or CreateMonitor on Inhibit
  2. Listen for the Response signal
  3. Look at the type of the session_handle

Anything else we should know?

No response

bilelmoussaoui commented 2 months ago

See https://github.com/bilelmoussaoui/ashpd/blob/master/src/desktop/session.rs#L115-L151 for context