#!/bin/bash

# this script is part of mx-system-sounds and governed by that license
# mxlinux.org
# author:  dolphin_oracle

# run the real xfce4-session exectuable
/usr/bin/xfce4-session.real "$@"

#don't play sound if xfce4-session.real is running
test=$(ps -aux |grep xfce4-session.real |grep -v grep)
if [ -z "$test" ]; then
	#after logout, run logout sound
	/usr/bin/logoutsound-mx
fi


