mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
Update NonSteamLaunchers.sh
This commit is contained in:
parent
d2add81605
commit
c529e86384
@ -2316,6 +2316,7 @@ if $DECKY_LOADER_EXISTS && $NSL_PLUGIN_EXISTS; then
|
||||
switch_to_game_mode
|
||||
exit 0
|
||||
elif $DECKY_LOADER_EXISTS && ! $NSL_PLUGIN_EXISTS; then
|
||||
show_message "Please enter your password for authentication..."
|
||||
USER_INPUT=$(zenity --forms --title="Authentication Required" --text="Decky Loader detected! But no NSL plugin :( Would you like to inject the plugin and switch to Game Mode?" --separator="|" --add-password="Password")
|
||||
else
|
||||
zenity --error --text="Decky Loader not detected. Please download and install it from their website first and re-run this script to get the NSL Plugin."
|
||||
@ -2346,7 +2347,10 @@ git clone "$REPO_URL" "$LOCAL_DIR"
|
||||
cd "$LOCAL_DIR"
|
||||
git checkout "$BRANCH_NAME"
|
||||
|
||||
show_message "Plugin installed. Switching to Game Mode..."
|
||||
echo "Restarting the plugin loader service..."
|
||||
sudo systemctl restart plugin_loader.service
|
||||
|
||||
show_message "Plugin installed and loader restarted. Switching to Game Mode..."
|
||||
|
||||
# Switch to Game Mode after completion
|
||||
switch_to_game_mode
|
||||
@ -2357,6 +2361,7 @@ switch_to_game_mode
|
||||
|
||||
|
||||
|
||||
|
||||
# TODO: might be better to relocate temp files to `/tmp` or even use `mktemp -d` since `rm -rf` is potentially dangerous without the `-i` flag
|
||||
|
||||
# Delete NonSteamLaunchersInstallation subfolder in Downloads folder
|
||||
|
Loading…
Reference in New Issue
Block a user