SteamOS icon indicating copy to clipboard operation
SteamOS copied to clipboard

Missing xdg-desktop-portal-gtk

Open dos1 opened this issue 3 years ago • 13 comments

xdg-desktop-portal-gtk is required under Plasma Wayland session for flatpaked GTK apps to be able to read GTK settings, including font antialiasing. Not having this portal installed causes them to end up with bad font rendering.

20220703003606_1

This can be easily reproduced by running Plasma Wayland session as a non-Steam app with this script:

#!/bin/sh
unset LD_PRELOAD
exec startplasma-wayland --xwayland --x11-display $DISPLAY --no-lockscreen --width 1280 --height 800 -- plasma_session

Installing xdg-desktop-portal-gtk is enough to fix this issue.

dos1 avatar Jul 02 '22 22:07 dos1

I think you're right, upstream bug report here: https://github.com/flatpak/flatpak/issues/2861#issuecomment-494145504

bertogg avatar Jul 04 '22 16:07 bertogg

I had a moment to check this, the problem is as you say but the Desktop mode defaults to X11, are you launching the Wayland session manually?

bertogg avatar Jul 11 '22 15:07 bertogg

Yes, just as mentioned in the description - this is a great way to quickly get into desktop without ending gamescope session and retaining access to input configuration overlay.

dos1 avatar Jul 14 '22 17:07 dos1

Think this might be a duplicate of #775? Both are problems caused by missing the proper desktop portal being installed.

different55 avatar Jul 18 '22 16:07 different55

No, I don't think it's the same problem.

#775 is about the portal not working properly after restarting the desktop session. Without the fix, this problem can be reproduced easily in a standard configuration.

#803 (this one) is about gsettings not working properly because the portal that implements that functionality is not installed at all. This only happens with a non-standard configuration (Plasma with Wayland) so it's not so severe in my opinion.

bertogg avatar Jul 18 '22 16:07 bertogg

I'm also mostly using "desktop mode" from the Steam Deck UI this way as it's just starts faster and is more convenient with the quick access menu and all at my fingertips. I can still launch games at the same time through the Steam Deck UI.

I made a non-steam game shortcut that looks like this:

env -u LD_PRELOAD startplasma-wayland --xwayland --x11-display "$DISPLAY" --wayland-display "$GAMESCOPE_WAYLAND_DISPLAY" --width 1280 --height 800 --no-lockscreen -- plasma_session

GTK flatpak apps have non-antialiased fonts and missing icons at times (like bottles) so It would be great if xdg-desktop-portal-gtk and xdg-desktop-portal-gnome (mostly fixes the missing icons thing) could be installed in the base system by default.

popsUlfr avatar Aug 08 '22 10:08 popsUlfr

@popsUlfr Unlike xdg-desktop-portal-gtk, a correctly functioning Plasma system shouldn't need xdg-desktop-portal-gnome for anything, so the missing icon stuff points to something else being misconfigured.

dos1 avatar Aug 10 '22 22:08 dos1

Yes, I agree that the gnome desktop portal shouldn't be needed if we don't use the gnome desktop environment anyway. But currently it seems that only by having both installed, apps like bottles will show up properly or rather as they were intended to look like by by the devs.

popsUlfr avatar Aug 10 '22 23:08 popsUlfr

Adding to this thread: while not the main intended use for this platform, it appears that another flatpak, namely Zoom, also complains about the lack of xdg-desktop-portal, nevermind the specific xdg-desktop-portal-gtk. Right now, without this tool (allegedly), I can't use any SSO solution (custom, Google or whatever) to log into Zoom (flat) from the SteamOS desktop.

cybik avatar Dec 05 '22 18:12 cybik

@cybik OS 3.4 includes xdg-desktop-portal and Zoom SSO just works even without xdg-desktop-portal-gtk. Just played around with it the Google one.

evelikov avatar Dec 07 '22 12:12 evelikov

I also don't see any error with Zoom on OS 3.4, what is the exact problem that you have @cybik ?

bertogg avatar Dec 07 '22 14:12 bertogg

Hm. That's quaint then. I can validate the portal layer is indeed present on my system - so apologies for necro'ing this post. Something else might be afoot.

Full disclosure, I'm trying to not install anything in the core system; my browser is actually a Flatpak-installed Edge.

cybik avatar Dec 07 '22 15:12 cybik

FYI the GTK portal will be preinstalled in SteamOS 3.6.

bertogg avatar Feb 09 '24 11:02 bertogg