mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
disbaled steam restart if Decky Plugin test
This commit is contained in:
parent
c041991ce5
commit
bf5a8a1548
@ -2720,14 +2720,14 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Directory to be checked
|
||||||
|
dir="${logged_in_home}/homebrew/plugins/NonSteamLaunchersDecky"
|
||||||
|
|
||||||
|
# Check if directory does not exist
|
||||||
|
if [ ! -d "$dir" ]; then
|
||||||
# Detach script from Steam process
|
# Detach script from Steam process
|
||||||
nohup sh -c 'sleep 10; /usr/bin/steam' &
|
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
|
# 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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user