Steam for Linux

Steam for Linux

Steam launching File Explorer when launching games with Proton
This new thing has started occurring with Steam on Linux here when I want to run a game using Proton, for some reason now Steam is launching File Explorer when I hit Play from the Steam client and I have to manually browse it to launch the game. THIS SHOULD NOT BE A THING.

I expect the game to launch when I hit Play, not open up Wine's File Explorer. I've noticed this happen with many titles launched with Proton now. Okami HD for one, and Temtem are two that I've seen this happen with now.

What can I do to disable File Explorer from being opened when I hit play? How can I make sure Steam properly launches the game with proton by executing the games file? Is there a command property that I can do with Launcher Options with Proton to direct it to launch the game properly?
< >
Visualizzazione di 1-15 commenti su 15
I have not heard of this bug.
What game is this on.

Do you have any particular Proton settings changed?

File Explorer is now run as a background service, instead of as an executable capable linked library. However, it shouldn't be displaying any actual windows.

As a note, the proton-wine explorer.exe executable should run as a support service. While functionally it can be loaded as a dll like they were doing, not having it already running in the background sets off some anti-cheat and anti-tamper systems because it thinks the game is running in a "modification sandbox" with an altered explorer.exe loaded as a dll.

This is a bug for bug replication of the Windows bug: Explorer.exe always runs in the background even if you are using a different GUI shell service.

If you have a game that was previously running an older version of Proton that is doing this, you may need to purge your compat directory.

To do this back up your game files stored in the compat directory of the game if they aren't cloud-synced, and the dilete the compat directory for the game

The compat directory is: [STEAM_LIBRARY]/compat/[game-id]. You can look up the game ID from the community page URL or store URL for the game. It's the number after "app".

You might note that everything on Steam, even Steam itself and Proton has App IDs. (The Steam Linux Client itself has an app ID of 221410.) These IDs are used for various utilities inside Steam, such as SteamCMD, which is the backend to the Steam Client.
Ultima modifica da Aoi Blue; 11 gen 2020, ore 20:54
in addition to what @Aoi suggests, if nothing fixes it:

on steam, go to the properties of one of the affected games and add this as launch parameter:
echo "%command%" > ~/test.txt

if you then click play, steam should create a text file called "test.txt" directly in your user home folder, instead of actually running the game

post the content of this file here, so we can have a look at exactly what command steam is trying to run for that game...

do the same for a non-affected game, for comparison
Ultima modifica da Marlock; 11 gen 2020, ore 5:58
Messaggio originale di Marlock:
in addition to what @Aoi suggests, if nothing fixes it:

on steam, go to the properties of one of the affected games and add this as launch parameter:
echo "%command%" > ~/test.txt

if you then click play, steam should create a text file called "test.txt" directly in your user home folder, instead of actually running the game

post the content of this file here, so we can have a look at exactly what command steam is trying to run for that game...

do the same for a non-affected game, for comparison


it doesn't seem to show anything when I try that command in the launch options it gives me this print out with the following;

Launching Okami HD '/home/▆▆▆▆▆▆▆/.local/share/Steam/compatibilitytools.d/Proton-4.21-GE-1'/proton waitforexitandrun '/media/▆▆▆▆▆▆▆/DH/games/steamapps/common/Okami/okami.exe'

waiting for exit and run, which is what seems to be doing when it launches File Explorer after hitting Play, it expects me to launch the game from File Explorer myself by going to the executable of the game.
this was only meant to check whether steam was asking proton to run the right file... my initial suspition was steam asking proton to run the wrong path and showing the file explorer due to that...

looks like you got the expected output, but there is one tiny thing you should confirm... is the folder '/media/▆▆▆▆▆▆▆/DH/games/steamapps/common/Okami/okami.exe really spelled with a capital "O"? and is everything else really in smallcaps?

With that taken care of, try items [4], [6] and [7] from this post, for debugging Proton:
https://steamcommunity.com/app/221410/discussions/0/1636417404917541481/
Ultima modifica da Marlock; 11 gen 2020, ore 9:44
Messaggio originale di Marlock:
this was only meant to check whether steam was asking proton to run the right file... my initial suspition was steam asking proton to run the wrong path and showing the file explorer due to that...

looks like you got the expected output, but there is one tiny thing you should confirm... is the folder '/media/▆▆▆▆▆▆▆/DH/games/steamapps/common/Okami/okami.exe really spelled with a capital "O"? and is everything else really in smallcaps?

With that taken care of, try items [4], [6] and [7] from this post, for debugging Proton:
https://steamcommunity.com/app/221410/discussions/0/1636417404917541481/
So do you think this might be the bug:
Proton/Wine is case sensitive, Windows is not

That is very possible. I didn't think of that possibility. The default behavior of the Proton launcher on "executable not found" very well may be to launch file explorer.
what version of proton are you using, and can you reproduce the bug with another version?
Messaggio originale di Marlock:
looks like you got the expected output, but there is one tiny thing you should confirm... is the folder '/media/▆▆▆▆▆▆▆/DH/games/steamapps/common/Okami/okami.exe really spelled with a capital "O"? and is everything else really in smallcaps?
That's exactly how it should be, because that's what it downloaded as, nothing was changed in that directory.




Messaggio originale di Aoi Blue:
So do you think this might be the bug:
Proton/Wine is case sensitive, Windows is not

That is very possible. I didn't think of that possibility. The default behavior of the Proton launcher on "executable not found" very well may be to launch file explorer.

Case sensitivity doesn't matter all that much since Wine/Proton follows whatever the directory names are in the directory path names, and because Steam Pipe is a thing it'll always find the directory it needs regardless of case sensitivity. https://developer.valvesoftware.com/wiki/SteamPipe
Whenever I try Running Steam It Keeps Opening File Explorer And I Can't Play My Games Steam Is Broken. Steam Ohio.
Messaggio originale di RealYTCrazyPlushBros:
Whenever I try Running Steam It Keeps Opening File Explorer And I Can't Play My Games Steam Is Broken. Steam Ohio.

Sounds like the Steam launcher is pointing to the wrong thing. In order to help you I need to know how are you opening it. Are you launching through the menu app list or as you launching from a dock?
I always Open It on the Taskbar And Once It opens the File. I am Saying this on my Phone.
Messaggio originale di RealYTCrazyPlushBros:
I always Open It on the Taskbar And Once It opens the File. I am Saying this on my Phone.

Open up the file explorer and browse to the following directory, you should be able to press Ctrl+L to type in the path bar into the file explorer, or copy-paste it.

/usr/share/applications

You should see a file called Steam or Steam (Runtime), right-click that and go to Open With and select Text Editor, in your case it's probably called Kate. If you scroll down a bit it should say something like this;

Exec=/usr/bin/steam-runtime %U Icon=steam Terminal=false Type=Application Categories=Network;FileTransfer;Game; MimeType=x-scheme-handler/steam;x-scheme-handler/steamlink; Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends; PrefersNonDefaultGPU=true X-KDE-RunOnDiscreteGpu=true

check if the Exec part is correct and points to the actual Steam binary as shown in my example. If it doesn't have Steam there you'll need to correct it. But you need to have root permission to change the contents of the file and save it.

See Steam OS Accounts on user and root access: https://help.steampowered.com/en/faqs/view/4FD6-1AD6-CDD5-D31E

If the changes were done successfully, go open up Konsole the terminal emulator and type the following commands separately.

xdg-desktop-menu forceupdate xdg-desktop-icon forceupdate

This should update the application launchers in both the menu and icon on the taskbar so you can launch them as normal.
Wait... Is this for Linux or Windows? Cause I'm on Windows, and this was the Only Group that talked about this, so it was perfect for my Solution.
this is a linux forum and the original post is about windows explorer opening up instead of the game via Proton (a compatibility layer that comes with Steam so we can play windows games on Linux too)

you having the same issue on windows means Valve forked up something (the shortcut's path to steam) affecting a handful of users regardless of the OS
Oh... Where is the Windows Forum of this?
you mean where is steam's windows forum or where's the equivalent thread in the windows forum?

either way, i don't know, but you can probably find them easily

1) go to the base url of steam's discussions pages

2) look for a generic discussions community about the steam app (no OS specified = Windows 99% of the time)

3) use the discussions search field to find stuff related to this... "Steam launching Windows Explorer" might be enough
Ultima modifica da Marlock; 12 apr 2023, ore 19:17
< >
Visualizzazione di 1-15 commenti su 15
Per pagina: 1530 50

Data di pubblicazione: 10 gen 2020, ore 14:26
Messaggi: 15