Run steam games from Retropie/Execute .desktop files
-
Can you try using
gtk-launch
instead ofxdg-open
? -
@mitu It says that there is no such application:
gtk-launch: no such application /home/... -
I guess
gtk-launch
doesn't launch arbitray.desktop
files, but expects just the name of the shortcut and searches in the known application locations.Why don't you create a launch script (
.sh
) instead of a.desktop
file and add the launching command there ? -
@mitu Thanks, i'll give it a try. Is there a published solution for this? On the threads i found there were issues to closing the game and get automatically back to emulationstation.
Just found out xdg-open is broken. So this won't work until the bug is fixed. -
Is there a published solution for this?
None that I know. AFAIK Pegasus has a Steam integration/import module, and I think it uses the same command from the generated
.desktop
files (steam steam://rungameid/${app_id}
) to launch Steam games. -
@mitu Thank you. Here is also the problem that after finishing a game in steam emulationstation is not automatically reopened. But this is probably only to solve when steam has been improved here. Requests were made by the team around pegasus.
When editing my settings for the automatic start of kodi when opening Retropie (https://retropie.org.uk/forum/topic/23998/where-is-autostart-sh), however, I noticed that the automatic opening of Retropie at system startup is controlled via the file /home/"username"/.config/autostart/retropie.desktop. Which command is used to start it? I could not locate this, but was wondering if I could transfer this to the entry for steam in es_systems.cfg. However, while I was writing this, I realized that I would have to do some research on the part of the os. -
@abaaihd said in Run steam games from Retropie/Execute .desktop files:
Which command is used to start it?
You can open the
.desktop
file with a text editor and see the launch command (for any such file). RetroPie is started withgnome-terminal --full-screen --hide-menubar -e emulationstation
-
@mitu I have already edited this file to run an autostart.sh which then starts kodi directly.
I wanted to point out how on the part of linux the .desktop file is executed at system start. For me this is only executed by a double click and otherwise it is only opened. So my thought was that I could look at how the .desktop file is executed when linux starts (obviously not via a double click) and I could add this command to the es_systems.cfg. -
@abaaihd said in Run steam games from Retropie/Execute .desktop files:
I wanted to point out how on the part of linux the .desktop file is executed at system start
The location of the file (
$HOME/.config/autostart
) tells the desktop manager to start the application automatically when you login to your desktop session. -
Basically what I'm doing to launch is to configure the platform like this:
<system> <name>steam</name> <fullname>Steam</fullname> <path>~/RetroPie/roms/steam</path> <extension>.dat</extension> <command>steam steam://rungameid/`cat %ROM%`</command> <platform>pc</platform> <theme>steam</theme> </system>
And then in the Steam ROMs folder, saving the game id in a
.cat
file.Like @abaaihd said, the only issue is when exiting the game, as Steam will be minimized and EmulationStation will loose focus.
@abaaihd Did you get able to get back to ES after exit any Steam game?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.