From bf5a8a1548cbb55a0afe3f932a44dcc76d2508c6 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sun, 18 Feb 2024 22:47:04 -0800 Subject: [PATCH] disbaled steam restart if Decky Plugin test --- NonSteamLaunchers.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 97e1277..68d8db1 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -2720,14 +2720,14 @@ fi -# Detach script from Steam process -nohup sh -c 'sleep 10; /usr/bin/steam' & +# Directory to be checked +dir="${logged_in_home}/homebrew/plugins/NonSteamLaunchersDecky" -# Define the directory -dir="${logged_in_home}/homebrew/NonSteamLaunchersDecky/" - -# Check if the directory does not exist +# Check if directory does not exist if [ ! -d "$dir" ]; then + # Detach script from Steam process + nohup sh -c 'sleep 10; /usr/bin/steam' & + # Close all instances of Steam steam_pid() { pgrep -x steam ; } steam_running=$(steam_pid) @@ -2735,8 +2735,6 @@ if [ ! -d "$dir" ]; then # 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 @@ -2749,6 +2747,8 @@ fi + + #Setup NSLGameScanner.service python_script_path="${logged_in_home}/.config/systemd/user/NSLGameScanner.py"