Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native file picker doesn't work with xdg-desktop-portal-wlr or xdg-desktop-portal-hyprland #9594

Closed
xor-bits opened this issue Jun 15, 2023 · 1 comment

Comments

@xor-bits
Copy link

Your system information

  • Steam client version (build number or date): 1686779606
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

The native file picker doesn't work on Hyprland and possibly other xdg-desktop-portal tasks won't work either. This seems to be because steam supports only xdg-desktop-portal-gtk and xdg-desktop-portal-kde portals but not xdg-desktop-portal-wlr or xdg-desktop-portal-hyprland which Hyprland uses.

Steps for reproducing this issue:

  1. Install hyprland, xdg-desktop-portal and xdg-desktop-portal-hyprland
  2. Remove other xdg-desktop-portal-* packages
  3. Reboot and launch hyprland and then steam
  4. Now native file pickers are broken

Add a Game > Add a Non-Steam game... > Browse

or

Steam > Settings > Storage > +

{
  "display" : {
    "environment" : [
      "DISPLAY=:0",
      "WAYLAND_DISPLAY=wayland-1",
      "XDG_CURRENT_DESKTOP=Hyprland",
      "XDG_SESSION_CLASS=user",
      "XDG_SESSION_DESKTOP=Hyprland",
      "XDG_SESSION_TYPE=wayland"
    ],
    "wayland-session" : true,
    "wayland-issues" : [
    ],
    "x11-type" : "xwayland"
  },
  "xdg-portals" : {
    "details" : {
      "interfaces" : {
        "org.freedesktop.portal.OpenURI" : {
          "available" : false
        },
        "org.freedesktop.portal.Email" : {
          "available" : false
        }
      },
      "backends" : {
        "org.freedesktop.impl.portal.desktop.gtk" : {
          "available" : false
        },
        "org.freedesktop.impl.portal.desktop.kde" : {
          "available" : false
        }
      }
    },
    "issues" : [
      "missing-interface",
      "no-implementation"
    ],
    "messages" : [
      "The 'version' property is not available for 'org.freedesktop.portal.OpenURI', either there isn't a working xdg-desktop-portal or it is a very old version",
      "The 'version' property is not available for 'org.freedesktop.portal.Email', either there isn't a working xdg-desktop-portal or it is a very old version",
      "There isn't a working portal implementation"
    ]
  }
}
@kisak-valve
Copy link
Member

Hello @xor-bits, this was pointed out at #9447 (comment). The key detail being that these xdg-desktop-portal backends do not implement a file chooser interface. Report this missing functionality to the individual backends.

From the Steam client side, #9584 covers what Steam should be doing in this scenario.

Closing as not a Steam client bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants