lutris icon indicating copy to clipboard operation
lutris copied to clipboard

Steam Deck: can't browse for game executable

Open juk0de opened this issue 3 years ago • 3 comments

I've installed Lutris through Discover / Flatpak and the problem is that the "Browse" button for selecting the game executable doesn't work (nothing happens when you klick on it). The other "Browse" buttons (e. g. for selecting the prefix) are working, though.

As a workaround, I've selected Dolphin as the default application for opening folders, as described here: https://www.youtube.com/watch?v=3_g-k5c-Hys

However, while this fixes the issue in desktop mode, it makes things worse in gaming mode: now the other "Browse" buttons don't work either (they are all broken). Is there a real fix for this issue?

I also wonder if it's caused by / limited to the Flatpak version or is it sth. Deck specific?

juk0de avatar Sep 14 '22 06:09 juk0de

This is a very specific bung in the "KDE portal" on the Steam Deck

--> https://github.com/ValveSoftware/SteamOS/issues/775

As a Workaround just run this command in the terminal:

systemctl restart --user xdg-desktop-portal

You have to runt this everytime if you switch to desktop mode...

nabel0 avatar Sep 18 '22 10:09 nabel0

Thanks for the link! With such a long history, it seems to be a rather complex issue.

But are you sure that it also causes the behaviour described above? Because, as I wrote, 2 out of 3 Lutris "Browse" buttons actually work. I'd assume that all three would be equally affected if Lutris would not be allowed to open a file browser. And why does it work if I set "Dolphin" as the default application for opening folders? It still doesn't make 100% sense to me...

juk0de avatar Sep 19 '22 05:09 juk0de

Just chiming in to say that this has been driving me crazy but running systemctl restart --user xdg-desktop-portal worked for me. Thanks!

petersterne avatar Oct 15 '22 05:10 petersterne

Just chiming in to say that this has been driving me crazy but running systemctl restart --user xdg-desktop-portal worked for me. Thanks!

I found that on reddit, better than write command every time i go to desktop mode

" A more permanent fix I found was the following:

Create the file /home/deck/.config/plasma-workspace/env/restartportal.sh

Write the following into this file:

#!/bin/sh systemctl --user restart xdg-desktop-portal Right-click -> Properties -> Permissions -> Check "Is Executable"

Restart desktop mode

This script will basically just run the restart-command whenever you enter desktop-mode

I think KDE-Plasma already fixed this in 5.24, but steam os is still stuck on an older version "

szeligus avatar Oct 23 '22 16:10 szeligus

Just chiming in to say that this has been driving me crazy but running systemctl restart --user xdg-desktop-portal worked for me. Thanks!

I found that on reddit, better than write command every time i go to desktop mode

" A more permanent fix I found was the following:

Create the file /home/deck/.config/plasma-workspace/env/restartportal.sh

Write the following into this file:

#!/bin/sh systemctl --user restart xdg-desktop-portal Right-click -> Properties -> Permissions -> Check "Is Executable"

Restart desktop mode

This script will basically just run the restart-command whenever you enter desktop-mode

I think KDE-Plasma already fixed this in 5.24, but steam os is still stuck on an older version "

and how to revert back to original state? just in case somehow this already fixed in future updates..

StegoZ avatar Oct 27 '22 06:10 StegoZ

and how to revert back to original state? just in case somehow this already fixed in future updates..

By deleting the restartportal.sh script.

juk0de avatar Oct 27 '22 09:10 juk0de

This is now fixed in the current SteamOS release

strycore avatar Jun 07 '23 03:06 strycore