Skip to content

Commit

Permalink
Merge pull request ChimeraOS#109 from ChimeraOS/add-post-client-shutd…
Browse files Browse the repository at this point in the history
…own-hook

add a post client shutdown hook
  • Loading branch information
alkazar authored Aug 9, 2024
2 parents f8390d3 + 21257a0 commit bec85df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions usr/share/gamescope-session-plus/gamescope-session-plus
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ post_gamescope_start() {
:
}

# default empty function to run after client exits
post_client_shutdown() {
:
}

get_gamescope_binary() {
if [ -n "$GAMESCOPE_BIN" ]; then
echo $GAMESCOPE_BIN
Expand Down Expand Up @@ -330,6 +335,8 @@ else
rm "$short_session_tracker_file"
fi

post_client_shutdown

# When the client exits, kill gamescope nicely
kill $gamescope_pid

Expand Down

0 comments on commit bec85df

Please sign in to comment.