Open moraroy opened 3 months ago
I'm not sure that I follow your example completely (do you have a specific .desktop
file that is failing?), but in general for more complicated cases you can write your launcher in a shell script and run that shell script from the .desktop
file.
@bertogg in steam shortcut there is Start IN, Target and Launch Options, basically what im trying to say if you were to open up a .desktop file the exec line would be this Exec="/home/deck/Game.exe" STEAM_COMPAT_DATA_PATH="home/deck/.local/share/steam/steamapps/compatdata/1234567890" %command% if you add the .desktop to steam like that, it will actually fill out the entries StartIn Target and Launch Options correctly. except the Launch Options entry, it always adds double quotes around the whole of anything in the entry field. It seems like Steam is interpretting that entry as one whole arguement so much so that it puts double quotes around the entire line. im probbaly not explaining it too well, and im sure there are probbaly multiple ways to add the arguments correct just not sure how.
Can you share the actual .desktop file that you are trying to use ? (you can use Game.exe
and 1234567890
as Steam ID if you don't want to list the exact values).
Also, what version of Steam (Settings -> System -> Steam Version) and SteamOS (Settings -> System -> OS Build) are you using?
If you were to create a random .desktop file and fill out the .desktop file correctly or use the .desktop files KDE "Properties" and fill out the form there and then add that desktop file to steam, the launch options will not work. There seems to be an issue with how the launch options are being interpretted. All launch options are encased in "Double Quotes" which prevents any launch options that you may want to use not able to work. I'm not using env nor am using any other special character here is the exec line. Exec="path/to/exe." STEAM_COMPAT_DATA_PATH="path/to/compat/" %command% this is what should work, as regular steam shortcuts do. But when added to steam, steam for some reason interprets the Launch Options with double quotes rendering the command null. It shows like this in the Launch Options: "STEAM_COMPAT_DATA_PATH="path/to/compata/" %command%" notice the double Quotes around the whole line. Unless I'm not doing this correctly what would be the best way to allow for a steam command in a desktop shortcut? And then add that to steam?