mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.3k stars 117 forks source link

Use -silent to launch steam without it's window #1123

Open Lokito23 opened 5 months ago

Lokito23 commented 5 months ago

The issue

When I have tried to open a Steam game, without Steam being open (to avoid #442), Steam opens as a window.

Expected behavior

  1. Launch Pegasus
  2. Open a Steam game with Pegasus
  3. Steam starts up, but does not appear as a window
  4. The game launches

Actual behavior

  1. Launch Pegasus
  2. Open a Steam game with Pegasus
  3. Steam starts up as a window
  4. The game launches
  5. Upon closing the game, Steam's window is still there

System info

Arch Linux, Pegasus is installed via the AUR package.

Pegasus version

alpha16-78-gcc2497ab, 2024-04-12

Pegasus log

The attached log contains a steam game being selected to run, and steam starting up, along side the game, and then closing the game, steam and pegasus.

lastrun.log

mmatyas commented 5 months ago

Hi! As far as I know, that's how Steam works; to launch a Steam game, Steam has to launch, which may open its own window. Pegasus doesn't have Steam specific code to touch Steam's windows or processes, but if you're aware of a relevant command line flag, do let me know!

Lokito23 commented 5 months ago

You can use the command-line argument -silent in order for it to not show the window.

For example: steam -silent steam://rungameid/[insert id here]

mmatyas commented 5 months ago

I see, thanks!

mmatyas commented 5 months ago

Hm so the problem is, since Pegasus can only reopen after the program is closed, and for Steam that has to be done, in general, manually, leaving Steam's window on the screen might be a better reminder for that than only being present on the tray. I did try -silent and it works perfectly, so well that it makes easy to forget why Pegasus doesn't reappear.

Lokito23 commented 5 months ago

Once #442 does get fixed, it won't be a problem, but for now, keeping it as is isn't that bad of an idea to remind that you have steam open.

Lokito23 commented 5 months ago

Changed the title to reflect the current situation, this issue depends on #442 getting fixed, as it is useful as a reminder to close steam.