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

New Steam UI fails to fallback to built-in filepicker when xdg-desktop-portal is unavailable. #9584

Open
kzdixon opened this issue Jun 15, 2023 · 2 comments

Comments

@kzdixon
Copy link

kzdixon commented Jun 15, 2023

OS: Gentoo Linux
KERNEL: 6.3.7-zen1-znver4-o3-pds
CPU: AMD Ryzen 9 7950X3D 16-Core
GPU: AMD Radeon RX 7900 XTX (gfx1100, LLVM 16.0.6, DRM 3.52, 6.3.7-zen1-znver4-o3-pds)
GPU DRIVER: 4.6 Mesa 23.1.2
RAM: 64 GB

Now that this release has come out the filepicker doesn't open for me anywhere where it is applicable; be it profile, chat, or adding a non-steam game. Its completely broken for me on i3wm. No output given in terminal when Steam is launched that way either after clicking the button that should spawn pcmanfm-qt on my system.

EDIT: It seems that the only working filebrowser button is the one that behaved the same as it did prior to this New UI release which is here:
image
pcmanfm-qt gets opened as it should.

https://gist.github.com/kzdixon/4d7c3e646956d53aca048d40aeca090b

Originally posted by @kzdixon in #9373 (comment)

UPDATE:
For other users on i3wm who may not have xdg-desktop-portal set up I quickly slapped together a fix by emerging rtkit xdg-desktop-portal xdg-desktop-portal-gtk, editing /usr/share/xdg-desktop-portal/portals/gtk.portal to include UseIn=gnome;i3 and starting /usr/libexec/rtkit-daemon as root, then /usr/libexec/xdg-desktop-portal-gtk and /usr/libexec/xdg-desktop-portal as my user.
I likely need to add them to my startup commands for i3wm's session but have yet to confirm if that'll do the trick after a reboot.
xdg-desktop-portal-lxqt did not respect my system's QT or GTK theming, hence why I swapped to the -gtk variant.

UPDATE 2:
Since I'm on OpenRC I had to make a new file in /etc/local.d that I called rtkit-daemon.start to handle that portion of the startup sequence.

#!/usr/bin/env bash

description="start rtkit-daemon for xdg-desktop-portal"
name="rtkit-daemon"

depend()
{
        use dbus
}


bash -c "/usr/libexec/rtkit-daemon"

The above assumes that the local service is already set up to run in the default runlevel.

The following in my i3 config handles the xdg-desktop-portal portions:

exec --no-startup-id /usr/libexec/xdg-desktop-portal-gtk
exec --no-startup-id /usr/libexec/xdg-desktop-portal

The native filepicker (gtk) now shows up without further user intervention after rebooting.

@kzdixon kzdixon changed the title New Steam UI fails to fallback to built-in file picker when desktop portal is unavailable. New Steam UI fails to fallback to built-in file picker when xdg-desktop-portal is unavailable. Jun 15, 2023
@kzdixon kzdixon changed the title New Steam UI fails to fallback to built-in file picker when xdg-desktop-portal is unavailable. New Steam UI fails to fallback to built-in filepicker when xdg-desktop-portal is unavailable. Jun 15, 2023
@dw5
Copy link

dw5 commented Jun 15, 2023

Also breaks add NON-STEAM game and BROWSE button is just decorative.
KDE Endavour OS #9447

@kzdixon
Copy link
Author

kzdixon commented Jun 15, 2023

For Gentoo users, it looks like steam-overlay has added a desktop-portal USE flag and warning that vaguely hints at how to fix the issue (see: anyc/steam-overlay@f5d8189).

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

No branches or pull requests

3 participants