tkashkin / GameHub

All your games in one place
https://tkashkin.github.io/projects/gamehub
GNU General Public License v3.0
2.23k stars 129 forks source link

cmdline only mode for common operations (no gui) - need gamehub to return the path to the game's binary executable on stdout #574

Open dreamcat4 opened 2 years ago

dreamcat4 commented 2 years ago

Hello there, Currently (on release ubuntu .deb version). I can see with gamehub --help some commands to open up the information about a game. It's properties window etc.

However that launches the GUI. So what would be nice is cmdline only. Without the gui. As i am working on a shell program that needs to find the true location of said game. It's binary .exe file.

There are of course other uses for cmdline only mode. To generate a .desktop file to launch the game directly. Or for other kinds of scripting tasks. Or headless operation etc. Lots of uses.

Just so long as it can return to stdout the location of the game .exe file. Or it's full launch command whatever. And without opening any GUI windows. Or if gamehub is already running, then don't mess with it (don't activate it / don't bring it's window to foreground). Then would be very happy.

BTW where does gamehub store this information for it's games? The run command? Because that could solve my problem in the meantime. Whilst waiting for a proper cmdline interface. However unfortunately I could not find that on disk. Many thanks for considering this matters, good day