#!/usr/bin/bash

if [ -f "/usr/libexec/os-session-select" ] ; then
    /usr/libexec/os-session-select $@
fi

# Simply call shutdown on the client
steam -shutdown
# make sure all wine processes are DEAD dead.
kill -9 $(ps -ef | grep -E -i '(wine|processid|\.exe)' | awk '{print $2}')
systemctl --user stop gamescope-session-plus@steam.service
