Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: erwan on February 26, 2015, 02:48:03 AM

Title: Launching native Linux games?
Post by: erwan on February 26, 2015, 02:48:03 AM
I mostly have Mame and emulated games in my arcade cabinet, but I also have a couple native Linux games (Bit trip runner, Jamestown, etc.).

Is there a way to launch them from Attract Mode? I've seen a default file for Windows games and tried to tweak it but I couldn't get it to work.
Title: Re: Launching native Linux games?
Post by: raygun on March 02, 2015, 11:26:00 PM
Doing something like the windows one should work if you use /bin/sh as the executable and -c "[romname]" as the parameters.

I would expect that to allow you to launch shell scripts (or maybe you could use symlinks?) that would then launch the corresponding game. 

Something like that should work.  I haven't tried using attractmode with linux games myself so I can't be any more help.
Title: Re: Launching native Linux games?
Post by: bionictoothpick on July 22, 2017, 08:04:44 AM
Has this been solved?
Title: Re: Launching native Linux games?
Post by: rcampbel3 on July 26, 2017, 10:33:48 PM
Maybe not "solved" in the sense that it's silly to require a dummy executable to launch a shell script, but this works fine for me -- my "Linux Games.cfg"

Code: [Select]
# Generated by Attract-Mode v2.2.1-41-dirty
#
executable           /bin/bash
args                 "[romfilename]"
rompath              /usr/local/share/games/ports/
romext               .sh;.SH
system               PC
info_source          thegamesdb.net
artwork    boxart          /usr/local/share/games/ports/boxart
artwork    cartart         /usr/local/share/games/ports/cartart
artwork    flyer           /usr/local/share/games/ports/boxart
artwork    marquee         /usr/local/share/games/ports/marquee
artwork    snap            /usr/local/share/games/ports/videos;/usr/local/share/games/ports/snap
artwork    wheel           /usr/local/share/games/ports/wheel