mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 15:21:52 +01:00
Add support for chrome argument and rename nopython to deckyplugin
This commit is contained in:
parent
85dc0e2cba
commit
2a6dac77af
@ -52,15 +52,19 @@ check_for_updates() {
|
||||
|
||||
# Get the command line arguments
|
||||
args=("$@")
|
||||
nopython=false
|
||||
deckyplugin=false
|
||||
installchrome=false
|
||||
for arg in "${args[@]}"; do
|
||||
if [ "$arg" = "NoPython" ]; then
|
||||
nopython=true
|
||||
if [ "$arg" = "DeckyPlugin" ]; then
|
||||
deckyplugin=true
|
||||
break
|
||||
if [ "$arg" = "Chrome" ]; then
|
||||
installchrome=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "${nopython}" = false ]; then
|
||||
if [ "${deckyplugin}" = false ]; then
|
||||
#Download Modules
|
||||
# Define the repository and the folders to clone
|
||||
repo_url='https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck/archive/refs/heads/main.zip'
|
||||
@ -2149,7 +2153,7 @@ echo "99"
|
||||
echo "# Checking if Chrome is installed...please wait..."
|
||||
|
||||
# Check if user selected any of the options
|
||||
if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $options == *"Xbox Game Pass"* ]] || [[ $options == *"Geforce Now"* ]] || [[ $options == *"Amazon Luna"* ]] || [[ $options == *"Hulu"* ]] || [[ $options == *"Disney+"* ]] || [[ $options == *"Amazon Prime Video"* ]] || [[ $options == *"Youtube"* ]] || [[ $options == *"Twitch"* ]] || [[ $options == *"movie-web"* ]]; then
|
||||
if [[ "${installchrome}" = true}} || [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $options == *"Xbox Game Pass"* ]] || [[ $options == *"Geforce Now"* ]] || [[ $options == *"Amazon Luna"* ]] || [[ $options == *"Hulu"* ]] || [[ $options == *"Disney+"* ]] || [[ $options == *"Amazon Prime Video"* ]] || [[ $options == *"Youtube"* ]] || [[ $options == *"Twitch"* ]] || [[ $options == *"movie-web"* ]]; then
|
||||
# User selected one of the options
|
||||
echo "User selected one of the options"
|
||||
|
||||
@ -2738,14 +2742,8 @@ else
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Directories to be checked
|
||||
dir1="${logged_in_home}/homebrew/plugins/NonSteamLaunchersDecky"
|
||||
dir2="${logged_in_home}/homebrew/plugins/NonSteamLaunchersDeckytest-main"
|
||||
dir3="${logged_in_home}/homebrew/plugins/NonSteamLaunchersDeckytest-develop"
|
||||
|
||||
# Check if either directory does not exist
|
||||
if [ ! -d "$dir1" ] && [ ! -d "$dir2" ] && [ ! -d "$dir3" ]; then
|
||||
if [ "${deckyplugin}" = false ]; then
|
||||
# Detach script from Steam process
|
||||
nohup sh -c 'sleep 10; /usr/bin/steam' &
|
||||
|
||||
@ -2756,22 +2754,6 @@ if [ ! -d "$dir1" ] && [ ! -d "$dir2" ] && [ ! -d "$dir3" ]; then
|
||||
|
||||
# Wait for the steam process to exit
|
||||
while steam_pid > /dev/null; do sleep 5; done
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if [ "${nopython}" = false ]; then
|
||||
|
||||
#Setup NSLGameScanner.service
|
||||
python_script_path="${logged_in_home}/.config/systemd/user/NSLGameScanner.py"
|
||||
|
Loading…
Reference in New Issue
Block a user