disbaled steam restart if Decky Plugin test

This commit is contained in:
Roy 2024-02-18 22:47:04 -08:00 committed by GitHub
parent c041991ce5
commit bf5a8a1548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2720,14 +2720,14 @@ fi
# Detach script from Steam process # Directory to be checked
nohup sh -c 'sleep 10; /usr/bin/steam' & dir="${logged_in_home}/homebrew/plugins/NonSteamLaunchersDecky"
# Define the directory # Check if directory does not exist
dir="${logged_in_home}/homebrew/NonSteamLaunchersDecky/"
# Check if the directory does not exist
if [ ! -d "$dir" ]; then if [ ! -d "$dir" ]; then
# Detach script from Steam process
nohup sh -c 'sleep 10; /usr/bin/steam' &
# Close all instances of Steam # Close all instances of Steam
steam_pid() { pgrep -x steam ; } steam_pid() { pgrep -x steam ; }
steam_running=$(steam_pid) steam_running=$(steam_pid)
@ -2735,8 +2735,6 @@ if [ ! -d "$dir" ]; then
# Wait for the steam process to exit # Wait for the steam process to exit
while steam_pid > /dev/null; do sleep 5; done while steam_pid > /dev/null; do sleep 5; done
else
echo "Directory $dir exists. Not restarting Steam."
fi fi
@ -2749,6 +2747,8 @@ fi
#Setup NSLGameScanner.service #Setup NSLGameScanner.service
python_script_path="${logged_in_home}/.config/systemd/user/NSLGameScanner.py" python_script_path="${logged_in_home}/.config/systemd/user/NSLGameScanner.py"