mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
revamped env_vars
This commit is contained in:
parent
3109554f82
commit
e518f29c2e
@ -218,7 +218,7 @@ fi
|
||||
|
||||
# Game Launchers
|
||||
|
||||
# TODO: parameterize hard-coded client versions (cf. 'app-25.6.2')
|
||||
# TODO: parameterize hard-coded client versions (cf. 'app-26.1.9')
|
||||
# Set the paths to the launcher executables
|
||||
epic_games_launcher_path1="${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe"
|
||||
epic_games_launcher_path2="${logged_in_home}/.local/share/Steam/steamapps/compatdata/EpicGamesLauncher/pfx/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe"
|
||||
@ -1846,292 +1846,66 @@ zenity --progress \
|
||||
|
||||
wait
|
||||
|
||||
|
||||
# Write to env_vars
|
||||
# Initialize the env_vars file
|
||||
> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
|
||||
# Checking Files For Shortcuts and Setting Directories For Shortcuts
|
||||
if [[ -f "$epic_games_launcher_path1" ]]; then
|
||||
# Epic Games Launcher is installed at path 1
|
||||
epicshortcutdirectory="\"$epic_games_launcher_path1\" -opengl"
|
||||
epiclaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
epicstartingdir="\"$(dirname "$epic_games_launcher_path1")\""
|
||||
echo "export epicshortcutdirectory=$epicshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export epiclaunchoptions=$epiclaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export epicstartingdir=$epicstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export epic_games_launcher=NonSteamLaunchers" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Epic Games Launcher found at path 1"
|
||||
elif [[ -f "$epic_games_launcher_path2" ]]; then
|
||||
# Epic Games Launcher is installed at path 2
|
||||
epicshortcutdirectory="\"$epic_games_launcher_path2\""
|
||||
epiclaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/EpicGamesLauncher/\" %command%"
|
||||
epicstartingdir="\"$(dirname "$epic_games_launcher_path2")\""
|
||||
echo "export epicshortcutdirectory=$epicshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export epiclaunchoptions=$epiclaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export epicstartingdir=$epicstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export epic_games_launcher=EpicGamesLauncher" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Epic Games Launcher found at path 2"
|
||||
fi
|
||||
write_env_vars() {
|
||||
local launcher_path="$1"
|
||||
local launcher_name="$2"
|
||||
local launcher_dir_name="$3"
|
||||
local launcher_args="$4" # Additional parameter for launcher-specific arguments
|
||||
local launcher_env_var_name="$5" # Additional parameter for the environment variable name
|
||||
|
||||
local shortcut_directory="\"${launcher_path}\" ${launcher_args}"
|
||||
local launch_options="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/${launcher_dir_name}/\" %command%"
|
||||
local starting_dir="\"$(dirname "${launcher_path}")\""
|
||||
|
||||
if [[ -f "$gog_galaxy_path1" ]]; then
|
||||
# Gog Galaxy Launcher is installed at path 1
|
||||
gogshortcutdirectory="\"$gog_galaxy_path1\""
|
||||
goglaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
gogstartingdir="\"$(dirname "$gog_galaxy_path1")\""
|
||||
echo "export gogshortcutdirectory=$gogshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export goglaunchoptions=$goglaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export gogstartingdir=$gogstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export gog_galaxy_launcher=NonSteamLaunchers" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Gog Galaxy Launcher found at path 1"
|
||||
elif [[ -f "$gog_galaxy_path2" ]]; then
|
||||
# Gog Galaxy Launcher is installed at path 2
|
||||
gogshortcutdirectory="\"$gog_galaxy_path2\""
|
||||
goglaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/GogGalaxyLauncher/\" %command%"
|
||||
gogstartingdir="\"$(dirname "$gog_galaxy_path2")\""
|
||||
echo "export gogshortcutdirectory=$gogshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export goglaunchoptions=$goglaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export gogstartingdir=$gogstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export gog_galaxy_launcher=GogGalaxyLauncher" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Gog Galaxy Launcher found at path 2"
|
||||
fi
|
||||
# Write the variables directly to the env_vars file
|
||||
echo "export ${launcher_name}shortcutdirectory=${shortcut_directory}" >> "${logged_in_home}/.config/systemd/user/env_vars"
|
||||
echo "export ${launcher_name}launchoptions=${launch_options}" >> "${logged_in_home}/.config/systemd/user/env_vars"
|
||||
echo "export ${launcher_name}startingdir=${starting_dir}" >> "${logged_in_home}/.config/systemd/user/env_vars"
|
||||
echo "export ${launcher_env_var_name}=${launcher_dir_name}" >> "${logged_in_home}/.config/systemd/user/env_vars"
|
||||
|
||||
echo "${launcher_name^} Launcher found at ${launcher_path}"
|
||||
}
|
||||
|
||||
if [[ -f "$uplay_path1" ]]; then
|
||||
# Uplay Launcher is installed at path 1
|
||||
uplayshortcutdirectory="\"$uplay_path1\""
|
||||
uplaylaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
uplaystartingdir="\"$(dirname "$uplay_path1")\""
|
||||
echo "export uplayshortcutdirectory=$uplayshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export uplaylaunchoptions=$uplaylaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export uplaystartingdir=$uplaystartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export ubisoft_connect_launcher=NonSteamLaunchers" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Ubisoft Connect Launcher found at path 1"
|
||||
elif [[ -f "$uplay_path2" ]]; then
|
||||
# Uplay Launcher is installed at path 2
|
||||
uplayshortcutdirectory="\"$uplay_path2\""
|
||||
uplaylaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/UplayLauncher/\" %command%"
|
||||
uplaystartingdir="\"$(dirname "$uplay_path2")\""
|
||||
echo "export uplayshortcutdirectory=$uplayshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export uplaylaunchoptions=$uplaylaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export uplaystartingdir=$uplaystartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export ubisoft_connect_launcher=UplayLauncher" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Ubisoft Connect Launcher found at path 1"
|
||||
fi
|
||||
check_and_write() {
|
||||
local launcher_name="$1"
|
||||
local path1="$2"
|
||||
local path2="$3"
|
||||
local launcher_dir_name_path1="$4"
|
||||
local launcher_dir_name_path2="$5"
|
||||
local launcher_args="$6"
|
||||
local launcher_env_var_name="$7"
|
||||
|
||||
if [[ -f "$battlenet_path1" ]]; then
|
||||
# Battlenet Launcher is installed at path 1
|
||||
battlenetshortcutdirectory="\"$battlenet_path1\""
|
||||
battlenetlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
battlenetstartingdir="\"$(dirname "$battlenet_path1")\""
|
||||
echo "export battlenetshortcutdirectory=$battlenetshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export battlenetlaunchoptions=$battlenetlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export battlenetstartingdir=$battlenetstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export bnet_launcher=NonSteamLaunchers" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Battlenet Launcher found at path 1"
|
||||
elif [[ -f "$battlenet_path2" ]]; then
|
||||
# Battlenet Launcher is installed at path 2
|
||||
battlenetshortcutdirectory="\"$battlenet_path2\""
|
||||
battlenetlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/Battle.netLauncher/\" %command%"
|
||||
battlenetstartingdir="\"$(dirname "$battlenet_path2")\""
|
||||
echo "export battlenetshortcutdirectory=$battlenetshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export battlenetlaunchoptions=$battlenetlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export battlenetstartingdir=$battlenetstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export bnet_launcher=Battle.netLauncher" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Battlenet Launcher found at path 2"
|
||||
fi
|
||||
if [[ -f "$path1" ]]; then
|
||||
write_env_vars "$path1" "$launcher_name" "$launcher_dir_name_path1" "$launcher_args" "$launcher_env_var_name"
|
||||
elif [[ -f "$path2" ]]; then
|
||||
write_env_vars "$path2" "$launcher_name" "$launcher_dir_name_path2" "$launcher_args" "$launcher_env_var_name"
|
||||
else
|
||||
echo "${launcher_name^} Launcher not found"
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ -f "$eaapp_path1" ]]; then
|
||||
# EA App Launcher is installed at path 1
|
||||
eaappshortcutdirectory="\"$eaapp_path1\""
|
||||
eaapplaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
eaappstartingdir="\"$(dirname "$eaapp_path1")\""
|
||||
echo "export eaappshortcutdirectory=$eaappshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export eaapplaunchoptions=$eaapplaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export eaappstartingdir=$eaappstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export ea_app_launcher=NonSteamLaunchers" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "EA App Launcher found at path 1"
|
||||
elif [[ -f "$eaapp_path2" ]]; then
|
||||
# EA App Launcher is installed at path 2
|
||||
eaappshortcutdirectory="\"$eaapp_path2\""
|
||||
eaapplaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/TheEAappLauncher/\" %command%"
|
||||
eaappstartingdir="\"$(dirname "$eaapp_path2")\""
|
||||
echo "export eaappshortcutdirectory=$eaappshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export eaapplaunchoptions=$eaapplaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export eaappstartingdir=$eaappstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export ea_app_launcher=TheEAappLauncher" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "EA App Launcher found at path 2"
|
||||
fi
|
||||
# Env_vars Configuration Paths
|
||||
check_and_write "epic" "$epic_games_launcher_path1" "$epic_games_launcher_path2" "NonSteamLaunchers" "EpicGamesLauncher" "-opengl" "epic_games_launcher"
|
||||
check_and_write "gog" "$gog_galaxy_path1" "$gog_galaxy_path2" "NonSteamLaunchers" "GogGalaxyLauncher" "" "gog_galaxy_launcher"
|
||||
check_and_write "uplay" "$uplay_path1" "$uplay_path2" "NonSteamLaunchers" "UplayLauncher" "" "ubisoft_connect_launcher"
|
||||
check_and_write "battlenet" "$battlenet_path1" "$battlenet_path2" "NonSteamLaunchers" "Battle.netLauncher" "" "bnet_launcher"
|
||||
check_and_write "eaapp" "$eaapp_path1" "$eaapp_path2" "NonSteamLaunchers" "TheEAappLauncher" "" "ea_app_launcher"
|
||||
check_and_write "amazon" "$amazongames_path1" "$amazongames_path2" "NonSteamLaunchers" "AmazonGamesLauncher" "" "amazon_launcher"
|
||||
check_and_write "itchio" "$itchio_path1" "$itchio_path2" "NonSteamLaunchers" "itchioLauncher" "" "itchio_launcher"
|
||||
check_and_write "legacy" "$legacygames_path1" "$legacygames_path2" "NonSteamLaunchers" "LegacyGamesLauncher" "" "legacy_launcher"
|
||||
check_and_write "humble" "$humblegames_path1" "$humblegames_path2" "NonSteamLaunchers" "HumbleGamesLauncher" "" "humble_launcher"
|
||||
check_and_write "indie" "$indiegala_path1" "$indiegala_path2" "NonSteamLaunchers" "IndieGalaLauncher" "" "indie_launcher"
|
||||
check_and_write "rockstar" "$rockstar_path1" "$rockstar_path2" "NonSteamLaunchers" "RockstarGamesLauncher" "" "rockstar_launcher"
|
||||
check_and_write "glyph" "$glyph_path1" "$glyph_path2" "NonSteamLaunchers" "GlyphLauncher" "" "glyph_launcher"
|
||||
check_and_write "psplus" "$psplus_path1" "$psplus_path2" "NonSteamLaunchers" "PlaystationPlusLauncher" "" "psplus_launcher"
|
||||
check_and_write "vkplay" "$vkplay_path1" "$vkplay_path2" "NonSteamLaunchers" "VKPlayLauncher" "" "vkplay_launcher"
|
||||
# End of writing to env_vars
|
||||
|
||||
if [[ -f "$amazongames_path1" ]]; then
|
||||
# Amazon Games Launcher is installed at path 1
|
||||
amazonshortcutdirectory="\"$amazongames_path1\""
|
||||
amazonlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
amazonstartingdir="\"$(dirname "$amazongames_path1")\""
|
||||
echo "export amazonshortcutdirectory=$amazonshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export amazonlaunchoptions=$amazonlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export amazonstartingdir=$amazonstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export amazon_launcher=NonSteamLaunchers" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Amazon Games Launcher found at path 1"
|
||||
elif [[ -f "$amazongames_path2" ]]; then
|
||||
# Amazon Games Launcher is installed at path 2
|
||||
amazonshortcutdirectory="\"$amazongames_path2\""
|
||||
amazonlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/AmazonGamesLauncher/\" %command%"
|
||||
amazonstartingdir="\"$(dirname "$amazongames_path2")\""
|
||||
echo "export amazonshortcutdirectory=$amazonshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export amazonlaunchoptions=$amazonlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export amazonstartingdir=$amazonstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export amazon_launcher=AmazonGamesLauncher" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "Amazon Games Launcher found at path 2"
|
||||
fi
|
||||
|
||||
if [[ -f "$itchio_path1" ]]; then
|
||||
# itchio Launcher is installed at path 1
|
||||
itchioshortcutdirectory="\"$itchio_path1\""
|
||||
itchiolaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
itchiostartingdir="\"$(dirname "$itchio_path1")\""
|
||||
echo "export itchioshortcutdirectory=$itchioshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export itchiolaunchoptions=$itchiolaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export itchiostartingdir=$itchiostartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export itchio_launcher=NonSteamLaunchers" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "itchio Launcher found at path 1"
|
||||
elif [[ -f "$itchio_path2" ]]; then
|
||||
# itchio Launcher is installed at path 2
|
||||
itchioshortcutdirectory="\"$itchio_path2\""
|
||||
itchiolaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/itchioLauncher/\" %command%"
|
||||
itchiostartingdir="\"$(dirname "$itchio_path2")\""
|
||||
echo "export itchioshortcutdirectory=$itchioshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export itchiolaunchoptions=$itchiolaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export itchiostartingdir=$itchiostartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export itchio_launcher=itchioLauncher" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "itchio Launcher found at path 2"
|
||||
fi
|
||||
|
||||
if [[ -f "$legacygames_path1" ]]; then
|
||||
# Legacy Games Launcher is installed at path 1
|
||||
legacyshortcutdirectory="\"$legacygames_path1\""
|
||||
legacylaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
legacystartingdir="\"$(dirname "$legacygames_path1")\""
|
||||
echo "export legacyshortcutdirectory=$legacyshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export legacylaunchoptions=$legacylaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export legacystartingdir=$legacystartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
elif [[ -f "$legacygames_path2" ]]; then
|
||||
# Legacy Games Launcher is installed at path 2
|
||||
legacyshortcutdirectory="\"$legacygames_path2\""
|
||||
legacylaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/LegacyGamesLauncher/\" %command%"
|
||||
legacystartingdir="\"$(dirname "$legacygames_path2")\""
|
||||
echo "export legacyshortcutdirectory=$legacyshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export legacylaunchoptions=$legacylaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export legacystartingdir=$legacystartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ -f "$humblegames_path1" ]]; then
|
||||
# Humble Games Launcher is installed at path 1
|
||||
humbleshortcutdirectory="\"$humblegames_path1\""
|
||||
humblelaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
humblestartingdir="\"$(dirname "$humblegames_path1")\""
|
||||
echo "export humbleshortcutdirectory=$humbleshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export humblelaunchoptions=$humblelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export humblestartingdir=$humblestartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
elif [[ -f "$humblegames_path2" ]]; then
|
||||
# Humble Games Launcher is installed at path 2
|
||||
humbleshortcutdirectory="\"$humblegames_path2\""
|
||||
humblelaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/HumbleGamesLauncher/\" %command%"
|
||||
humblestartingdir="\"$(dirname "$humblegames_path2")\""
|
||||
echo "export humbleshortcutdirectory=$humbleshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export humblelaunchoptions=$humblelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export humblestartingdir=$humblestartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ -f "$indiegala_path1" ]]; then
|
||||
# indiegala Launcher is installed at path 1
|
||||
indieshortcutdirectory="\"$indiegala_path1\""
|
||||
indielaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
indiestartingdir="\"$(dirname "$indiegala_path1")\""
|
||||
echo "export indieshortcutdirectory=$indieshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export indielaunchoptions=$indielaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export indiestartingdir=$indiestartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
elif [[ -f "$indiegala_path2" ]]; then
|
||||
# indiegala Launcher is installed at path 2
|
||||
indieshortcutdirectory="\"$indiegala_path2\""
|
||||
indielaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/IndieGalaLauncher/\" %command%"
|
||||
indiestartingdir="\"$(dirname "$indiegala_path2")\""
|
||||
echo "export indieshortcutdirectory=$indieshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export indielaunchoptions=$indielaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export indiestartingdir=$indiestartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ -f "$rockstar_path1" ]]; then
|
||||
# rockstar Launcher is installed at path 1
|
||||
rockstarshortcutdirectory="\"$rockstar_path1\""
|
||||
rockstarlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
rockstarstartingdir="\"$(dirname "$rockstar_path1")\""
|
||||
echo "export rockstarshortcutdirectory=$rockstarshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export rockstarlaunchoptions=$rockstarlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export rockstarstartingdir=$rockstarstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
elif [[ -f "$rockstar_path2" ]]; then
|
||||
# rockstar Launcher is installed at path 2
|
||||
rockstarshortcutdirectory="\"$rockstar_path2\""
|
||||
rockstarlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/RockstarGamesLauncher/\" %command%"
|
||||
rockstarstartingdir="\"$(dirname "$rockstar_path2")\""
|
||||
echo "export rockstarshortcutdirectory=$rockstarshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export rockstarlaunchoptions=$rockstarlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export rockstarstartingdir=$rockstarstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ -f "$glyph_path1" ]]; then
|
||||
# Glyph is installed at path 1
|
||||
glyphshortcutdirectory="\"$glyph_path1\""
|
||||
glyphlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
glyphstartingdir="\"$(dirname "$glyph_path1")\""
|
||||
echo "export glyphshortcutdirectory=$glyphshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export glyphlaunchoptions=$glyphlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export glyphstartingdir=$glyphstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
elif [[ -f "$glyph_path2" ]]; then
|
||||
# Glyph is installed at path 2
|
||||
glyphshortcutdirectory="\"$glyph_path2\""
|
||||
glyphlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/GlyphLauncher/\" %command%"
|
||||
glyphstartingdir="\"$(dirname "$glyph_path2")\""
|
||||
echo "export glyphshortcutdirectory=$glyphshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export glyphlaunchoptions=$glyphlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export glyphstartingdir=$glyphstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
|
||||
if [[ -f "$psplus_path1" ]]; then
|
||||
# Playstation is installed at path 1
|
||||
psplusshortcutdirectory="\"$psplus_path1\""
|
||||
pspluslaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
psplusstartingdir="\"$(dirname "$psplus_path1")\""
|
||||
echo "export psplusshortcutdirectory=$psplusshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export pspluslaunchoptions=$pspluslaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export psplusstartingdir=$psplusstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
elif [[ -f "$psplus_path2" ]]; then
|
||||
# Playstation is installed at path 2
|
||||
psplusshortcutdirectory="\"$psplus_path2\""
|
||||
pspluslaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/PlaystationPlusLauncher/\" %command%"
|
||||
psplusstartingdir="\"$(dirname "$psplus_path2")\""
|
||||
echo "export psplusshortcutdirectory=$psplusshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export pspluslaunchoptions=$pspluslaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export psplusstartingdir=$psplusstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ -f "$vkplay_path1" ]]; then
|
||||
# VK Play is installed at path 1
|
||||
vkplayshortcutdirectory="\"$vkplay_path1\""
|
||||
vkplaylaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
vkplaystartingdir="\"$(dirname "$vkplay_path1")\""
|
||||
echo "export vkplayshortcutdirectory=$vkplayshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export vkplaylaunchoptions=$vkplaylaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export vkplaystartingdir=$vkplaystartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
elif [[ -f "$vkplay_path2" ]]; then
|
||||
# VK Play is installed at path 2
|
||||
vkplayshortcutdirectory="\"$vkplay_path2\""
|
||||
vkplaylaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/VKPlayLauncher/\" %command%"
|
||||
vkplaystartingdir="\"$(dirname "$vkplay_path2")\""
|
||||
echo "export vkplayshortcutdirectory=$vkplayshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export vkplaylaunchoptions=$vkplaylaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export vkplaystartingdir=$vkplaystartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user