ValveSoftware / SteamOS

SteamOS community tracker
1.6k stars 70 forks source link

Missing xdg-desktop-portal-gtk #803

Open dos1 opened 2 years ago

dos1 commented 2 years ago

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.

bertogg commented 2 years ago

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

bertogg commented 2 years ago

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?

dos1 commented 2 years ago

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.

different55 commented 2 years ago

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

bertogg commented 2 years ago

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.

popsUlfr commented 2 years ago

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.

dos1 commented 2 years ago

@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.

popsUlfr commented 2 years ago

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.

cybik commented 1 year ago

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.

evelikov commented 1 year ago

@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.

bertogg commented 1 year ago

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

cybik commented 1 year ago

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.

bertogg commented 9 months ago

FYI the GTK portal will be preinstalled in SteamOS 3.6.