flathub / org.yuzu_emu.yuzu

https://flathub.org/apps/details/org.yuzu_emu.yuzu
22 stars 45 forks source link

Flathub Yuzu not opening an explorer folder anymore on "install file to nand". #498

Open notimp opened 2 years ago

notimp commented 2 years ago

Yuzu behavior on clicking "install file to nand": Does nothing.

I'm on Steamdeck (Stable channel).

Worked in the past. :)

Another user found a workaround:

So, had to first do sudo steamos-readonly disable then sudo pacman-key --init then sudo pacman-key --populate archlinux then sudo pacman -S xdg-desktop-portal-kde after that, the dialogs started working again Why this wasn't mentioned anywhere it beyond me, either it's a bug uniquely on my end, or the people encountering issues just gave up.

But thats no suitable for "normal" Steamdeck users (that dont have access to sudo). Any idea why this would happen, or any suggested workarround that doesnt rely on sudo would be appreciated. (Even any insight on why it happens, I cant tell from pacman -S fixing it alone. :) )

notimp commented 2 years ago

Might be related to the emudeck (installer script for emulators on steamdeck) install and permissions (see: https://github.com/flathub/org.yuzu_emu.yuzu/issues/96 ), I'll check and report back.

edit: Yes, setting permissions in flatseal fixed it. See attachment.

Bildschirmfoto 2022-06-12 um 08 48 41

I'll close the issue.

notimp commented 2 years ago

While working for the boot, where the permission was set in flatseal, the issue resurfaced on the next (shutdown and) boot up into desktop mode (not working again).

liushuyu commented 2 years ago

Sorry for the late response.

sudo pacman -S xdg-desktop-portal-kde

This should come pre-installed on (almost) all the Linux distros if you use KDE. XDG Portal is responsible for doing filesystem-related operations. As the application developer/distributor, we can't check for this (the app is sandboxed in Flatpak).

This is caused by the distribution packaging error and/or SteamOS oversight. We can't do anything about it. Please report the "missing xdg-desktop-portal-kde" issue to either SteamOS or Arch Linux.

As for the FlatSeal situation, the same thing: I can't reproduce this specific issue on my system (Arch Linux KDE X11). I don't currently own a Steam Deck, so I can't check this, sorry.

Beanow commented 2 years ago

Actually, KDE (and by extension KDE portals) won't be available if you're running under Steam Decks Gaming Mode.

Gaming Mode does not run a full desktop environment (runs gamescope) and from what I can tell is missing a lot of portals.

@liushuyu do you know what portal API exactly you're trying to use here? I'm assuming it's the "Install Files" file opening dialog that we're talking about. If so, this won't work under Gaming Mode.

@notimp try using the default permissions in flatseal, starting yuzu in desktop mode (without any scripts) and install to nand there.

Edit: Looking at what I've got on my Steam Deck (currently on beta channel)

$ pacman -Q xdg-desktop-portal-kde 
xdg-desktop-portal-kde 5.23.5-1

So either it was missing and Valve's included it on later updates, or it was there all along.

orowith2os commented 1 year ago

The issue is likely that, yes, the Gaming Mode doesn't run any portals; specifically, the FileChooser portal. This might be able to be fixed by running a portal session inside of gamescope, but that is largely of upstream concern, and I'd consider it a "non-issue" as this isn't Yuzu-specific.