Skip to content

Launching app that is allowed to outlive the game #814

Description

@Amzd

System Information

  • SteamTinkerLaunch version: v12.12
  • Distribution: Nobara 37
  • Installation Method: sudo dnf install steamtinkerlaunch

Issue Description

I wish to make sure that OBS is launched when I launch a game, and I do not want to close OBS when I close the game. Currently I have a start script that launches OBS if it does not exist yet:

#!/usr/bin/env bash

# Launch OBS if it is not already launched
# checking for obs with a launch argument so this only works if you have a launch argument in the .desktop file
if [ "$(ps aux | grep "obs --" | awk '{print $11}')" == "grep" ]; then
  (gtk-launch com.obsproject.Studio.desktop) &  
fi

but when I use this as launch script in steamtinkerlaunch and quit the game, steam thinks that OBS is a child of the game process so when I press STOP it quits OBS.

When I run this same script in the steam launch option "obs.sh" & %command% it works the way I want (steam does not care if it is still running after the game closed and I can run a different game) but I would like to do this for all my games and steamtinkerlaunch seemed like the way to go.

I have tried all the setsid, disown combinations I could imagine but could not get it to work in start script.

Any help is very much appreciated.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Custom commandIssues related to launching custom commandsbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions