mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 08:09:18 +01:00
added small check for now to test plugin
This commit is contained in:
parent
a714084255
commit
1063ec5946
@ -2720,11 +2720,14 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Detach script from Steam process
|
||||
nohup sh -c 'sleep 10; /usr/bin/steam' &
|
||||
|
||||
# Define the directory
|
||||
dir="${logged_in_home}/homebrew/NonSteamLaunchersDecky/"
|
||||
|
||||
# Check if the directory does not exist
|
||||
if [ ! -d "$dir" ]; then
|
||||
# Close all instances of Steam
|
||||
steam_pid() { pgrep -x steam ; }
|
||||
steam_running=$(steam_pid)
|
||||
@ -2732,6 +2735,9 @@ steam_running=$(steam_pid)
|
||||
|
||||
# Wait for the steam process to exit
|
||||
while steam_pid > /dev/null; do sleep 5; done
|
||||
else
|
||||
echo "Directory $dir exists. Not restarting Steam."
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user