mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2025-01-06 07:08:16 +01:00
Add files via upload
This commit is contained in:
parent
176b622b97
commit
b28f39840e
@ -283,11 +283,11 @@ def add_compat_tool(app_id):
|
||||
def check_if_shortcut_exists(shortcut_id, display_name, exe_path, start_dir, launch_options):
|
||||
# Check if the game already exists in the shortcuts using the id
|
||||
if any(s.get('appid') == shortcut_id for s in shortcuts['shortcuts'].values()):
|
||||
print(f"Existing shortcut found based on shortcut ID for game {display_name}. Skipping.")
|
||||
print(f"Existing shortcut found based on shortcut ID for game {display_name}. Skipping creation.")
|
||||
return True
|
||||
# Check if the game already exists in the shortcuts using the fields (probably unnecessary)
|
||||
if any(s.get('appname') == display_name and s.get('exe') == exe_path and s.get('StartDir') == start_dir and s.get('LaunchOptions') == launch_options for s in shortcuts['shortcuts'].values()):
|
||||
print(f"Existing shortcut found based on matching fields for game {display_name}. Skipping.")
|
||||
print(f"Existing shortcut found based on matching fields for game {display_name}. Skipping creation.")
|
||||
return True
|
||||
#End of Code
|
||||
|
||||
@ -304,19 +304,17 @@ app_ids = {}
|
||||
def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir):
|
||||
global new_shortcuts_added
|
||||
global shortcuts_updated
|
||||
global created_shortcuts
|
||||
# Check if the launcher is installed
|
||||
if not shortcutdirectory:
|
||||
print(f"{appname} is not installed. Skipping.")
|
||||
return
|
||||
exe_path = f"{shortcutdirectory}"
|
||||
signed_shortcut_id = get_steam_shortcut_id(exe_path, appname)
|
||||
print(f"Signed shortcut ID for {appname}: {signed_shortcut_id}")
|
||||
# Only store the app ID for specific launchers
|
||||
if appname in ['Epic Games', 'Gog Galaxy', 'Ubisoft Connect', 'Battle.net', 'EA App', 'Amazon Games', 'itch.io', 'Legacy Games', 'Humble Bundle', 'IndieGala Client', 'Rockstar Games Launcher', 'Glyph', 'Minecraft: Java Edition', 'Playstation Plus', 'VK Play']:
|
||||
app_ids[appname] = signed_shortcut_id
|
||||
print(f"Stored app ID for {appname}: {signed_shortcut_id}")
|
||||
unsigned_shortcut_id = get_unsigned_shortcut_id(signed_shortcut_id)
|
||||
print(f"Unsigned shortcut ID for {appname}: {unsigned_shortcut_id}")
|
||||
# Check if the game already exists in the shortcuts
|
||||
if check_if_shortcut_exists(signed_shortcut_id, appname, exe_path, startingdir, launchoptions):
|
||||
# Check if proton needs applying or updating
|
||||
@ -341,6 +339,7 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir):
|
||||
shortcuts['shortcuts'][str(signed_shortcut_id)] = new_entry
|
||||
print(f"Added new entry for {appname} to shortcuts.")
|
||||
new_shortcuts_added = True
|
||||
created_shortcuts.append(appname)
|
||||
add_compat_tool(unsigned_shortcut_id)
|
||||
|
||||
|
||||
@ -590,28 +589,7 @@ else:
|
||||
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{ubisoft_connect_launcher}/\" %command% \"uplay://launch/{uplay_id}/0\""
|
||||
exe_path = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{ubisoft_connect_launcher}/pfx/drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/upc.exe\""
|
||||
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{ubisoft_connect_launcher}/pfx/drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/\""
|
||||
signed_shortcut_id = get_steam_shortcut_id(exe_path, game)
|
||||
unsigned_shortcut_id = get_unsigned_shortcut_id(signed_shortcut_id)
|
||||
# Check if the game already exists in the shortcuts
|
||||
if check_if_shortcut_exists(signed_shortcut_id, game, exe_path, start_dir, launch_options):
|
||||
if add_compat_tool(unsigned_shortcut_id):
|
||||
shortcuts_updated = True
|
||||
continue
|
||||
|
||||
game_id = get_game_id(game)
|
||||
if game_id is not None:
|
||||
get_sgdb_art(game_id, unsigned_shortcut_id)
|
||||
new_shortcuts_added = True
|
||||
created_shortcuts.append(game)
|
||||
shortcuts['shortcuts'][str(len(shortcuts['shortcuts']))] = {
|
||||
'appid': str(signed_shortcut_id),
|
||||
'appname': game,
|
||||
'exe': exe_path,
|
||||
'StartDir': start_dir,
|
||||
'LaunchOptions': launch_options,
|
||||
'icon': f"{logged_in_home}/.steam/root/userdata/{steamid3}/config/grid/{get_file_name('icons', unsigned_shortcut_id)}"
|
||||
}
|
||||
add_compat_tool(unsigned_shortcut_id)
|
||||
create_new_entry(exe_path, game_name, launch_options, start_dir)
|
||||
|
||||
# End of Ubisoft Game Scanner
|
||||
|
||||
@ -655,29 +633,7 @@ else:
|
||||
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{ea_app_launcher}/\" %command% \"origin2://game/launch?offerIds={ea_ids}\""
|
||||
exe_path = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{ea_app_launcher}/pfx/drive_c/Program Files/Electronic Arts/EA Desktop/EA Desktop/EALaunchHelper.exe\""
|
||||
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{ea_app_launcher}/pfx/drive_c/Program Files/Electronic Arts/EA Desktop/EA Desktop/\""
|
||||
signed_shortcut_id = get_steam_shortcut_id(exe_path, game)
|
||||
unsigned_shortcut_id = get_unsigned_shortcut_id(signed_shortcut_id)
|
||||
# Check if the game already exists in the shortcuts
|
||||
if check_if_shortcut_exists(signed_shortcut_id, game, exe_path, start_dir, launch_options):
|
||||
if add_compat_tool(unsigned_shortcut_id):
|
||||
shortcuts_updated = True
|
||||
continue
|
||||
|
||||
game_id = get_game_id(game)
|
||||
if game_id is not None:
|
||||
get_sgdb_art(game_id, unsigned_shortcut_id)
|
||||
# Check if the game already exists in the shortcuts
|
||||
new_shortcuts_added = True
|
||||
created_shortcuts.append(game)
|
||||
shortcuts['shortcuts'][str(len(shortcuts['shortcuts']))] = {
|
||||
'appid': str(signed_shortcut_id),
|
||||
'appname': game,
|
||||
'exe': exe_path,
|
||||
'StartDir': start_dir,
|
||||
'LaunchOptions': launch_options,
|
||||
'icon': f"{logged_in_home}/.steam/root/userdata/{steamid3}/config/grid/{get_file_name('icons', unsigned_shortcut_id)}"
|
||||
}
|
||||
add_compat_tool(unsigned_shortcut_id)
|
||||
create_new_entry(exe_path, game_name, launch_options, start_dir)
|
||||
|
||||
#End of EA App Scanner
|
||||
|
||||
@ -736,36 +692,11 @@ else:
|
||||
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/\" %command% /command=runGame /gameId={game_info['id']} /path=\"{game_info['exe']}\""
|
||||
exe_path = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/pfx/drive_c/Program Files (x86)/GOG Galaxy/GalaxyClient.exe\""
|
||||
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/pfx/drive_c/Program Files (x86)/GOG Galaxy/\""
|
||||
signed_shortcut_id = get_steam_shortcut_id(exe_path, game)
|
||||
unsigned_shortcut_id = get_unsigned_shortcut_id(signed_shortcut_id)
|
||||
# Check if the game already exists in the shortcuts
|
||||
if check_if_shortcut_exists(signed_shortcut_id, game, exe_path, start_dir, launch_options):
|
||||
if add_compat_tool(unsigned_shortcut_id):
|
||||
shortcuts_updated = True
|
||||
continue
|
||||
|
||||
game_id = get_game_id(game)
|
||||
if game_id is not None:
|
||||
get_sgdb_art(game_id, unsigned_shortcut_id)
|
||||
new_shortcuts_added = True
|
||||
created_shortcuts.append(game)
|
||||
shortcuts['shortcuts'][str(len(shortcuts['shortcuts']))] = {
|
||||
'appid': str(signed_shortcut_id),
|
||||
'appname': game,
|
||||
'exe': exe_path,
|
||||
'StartDir': start_dir,
|
||||
'LaunchOptions': launch_options,
|
||||
'icon': f"{logged_in_home}/.steam/root/userdata/{steamid3}/config/grid/{get_file_name('icons', unsigned_shortcut_id)}"
|
||||
}
|
||||
add_compat_tool(unsigned_shortcut_id)
|
||||
create_new_entry(exe_path, game, launch_options, start_dir)
|
||||
|
||||
# End of Gog Galaxy Scanner
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#Battle.net Scanner
|
||||
# Define your mapping
|
||||
flavor_mapping = {
|
||||
@ -901,28 +832,7 @@ else:
|
||||
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{bnet_launcher}/\" %command% \"battlenet://{game_info['flavor']}\""
|
||||
exe_path = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{bnet_launcher}/pfx/drive_c/Program Files (x86)/Battle.net/Battle.net.exe\" --exec=\"launch {game_info['flavor']}\""
|
||||
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{bnet_launcher}/pfx/drive_c/Program Files (x86)/Battle.net/\""
|
||||
signed_shortcut_id = get_steam_shortcut_id(exe_path, game)
|
||||
unsigned_shortcut_id = get_unsigned_shortcut_id(signed_shortcut_id)
|
||||
# Check if the game already exists in the shortcuts
|
||||
if check_if_shortcut_exists(signed_shortcut_id, game, exe_path, start_dir, launch_options):
|
||||
if add_compat_tool(unsigned_shortcut_id):
|
||||
shortcuts_updated = True
|
||||
continue
|
||||
|
||||
game_id = get_game_id(game)
|
||||
if game_id is not None:
|
||||
get_sgdb_art(game_id, unsigned_shortcut_id)
|
||||
new_shortcuts_added = True
|
||||
created_shortcuts.append(game)
|
||||
shortcuts['shortcuts'][str(len(shortcuts['shortcuts']))] = {
|
||||
'appid': str(signed_shortcut_id),
|
||||
'appname': game,
|
||||
'exe': exe_path,
|
||||
'StartDir': start_dir,
|
||||
'LaunchOptions': launch_options,
|
||||
'icon': f"{logged_in_home}/.steam/root/userdata/{steamid3}/config/grid/{get_file_name('icons', unsigned_shortcut_id)}"
|
||||
}
|
||||
add_compat_tool(unsigned_shortcut_id)
|
||||
create_new_entry(exe_path, game, launch_options, start_dir)
|
||||
|
||||
# End of Battle.net Scanner
|
||||
|
||||
@ -972,30 +882,7 @@ if amazon_games:
|
||||
exe_path = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{amazon_launcher}/pfx/drive_c/users/steamuser/AppData/Local/Amazon Games/App/Amazon Games.exe\""
|
||||
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{amazon_launcher}/pfx/drive_c/users/steamuser/AppData/Local/Amazon Games/App/\""
|
||||
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{amazon_launcher}\" %command% -'amazon-games://play/{game['id']}'"
|
||||
signed_shortcut_id = get_steam_shortcut_id(exe_path, display_name)
|
||||
unsigned_shortcut_id = get_unsigned_shortcut_id(signed_shortcut_id)
|
||||
|
||||
# Check if the game already exists in the shortcuts
|
||||
if check_if_shortcut_exists(signed_shortcut_id, display_name, exe_path, start_dir, launch_options):
|
||||
if add_compat_tool(unsigned_shortcut_id):
|
||||
shortcuts_updated = True
|
||||
continue
|
||||
|
||||
print(f"No existing shortcut found for game {display_name}. Creating new shortcut.")
|
||||
created_shortcuts.append(display_name)
|
||||
shortcuts['shortcuts'][str(signed_shortcut_id)] = {
|
||||
'appid': str(signed_shortcut_id),
|
||||
'appname': display_name,
|
||||
'exe': exe_path,
|
||||
'StartDir': start_dir,
|
||||
'icon': f"{logged_in_home}/.steam/root/userdata/{steamid3}/config/grid/{get_file_name('icons', unsigned_shortcut_id)}",
|
||||
'LaunchOptions': launch_options,
|
||||
'GameID': get_game_id(display_name) if get_game_id(display_name) is not None else "default_game_id"
|
||||
}
|
||||
new_shortcuts_added = True
|
||||
if get_game_id(display_name) is not None:
|
||||
get_sgdb_art(get_game_id(display_name), unsigned_shortcut_id)
|
||||
add_compat_tool(unsigned_shortcut_id)
|
||||
create_new_entry(exe_path, display_name, launch_options, start_dir)
|
||||
|
||||
|
||||
#End of Amazon Games Scanner
|
||||
|
@ -222,6 +222,9 @@ vkplay_path2="${logged_in_home}/.local/share/Steam/steamapps/compatdata/VKPlayLa
|
||||
# chrome_installpath="/app/bin/chrome"
|
||||
chrome_path="/usr/bin/flatpak"
|
||||
chrome_startdir="\"/usr/bin\""
|
||||
chromedirectory="\"$chrome_path\""
|
||||
echo "export chromedirectory=$chromedirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export chrome_startdir=$chrome_startdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
|
||||
# Check if Epic Games Launcher is installed
|
||||
function CheckInstallations {
|
||||
@ -2206,6 +2209,9 @@ if [[ -f "$gog_galaxy_path1" ]]; then
|
||||
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
|
||||
@ -2213,6 +2219,9 @@ elif [[ -f "$gog_galaxy_path2" ]]; then
|
||||
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
|
||||
@ -2223,6 +2232,9 @@ if [[ -f "$uplay_path1" ]]; then
|
||||
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
|
||||
@ -2230,6 +2242,9 @@ elif [[ -f "$uplay_path2" ]]; then
|
||||
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
|
||||
@ -2239,6 +2254,9 @@ if [[ -f "$battlenet_path1" ]]; then
|
||||
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
|
||||
@ -2246,6 +2264,9 @@ elif [[ -f "$battlenet_path2" ]]; then
|
||||
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
|
||||
@ -2255,6 +2276,9 @@ if [[ -f "$eaapp_path1" ]]; then
|
||||
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
|
||||
@ -2262,6 +2286,9 @@ elif [[ -f "$eaapp_path2" ]]; then
|
||||
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
|
||||
@ -2271,6 +2298,9 @@ if [[ -f "$amazongames_path1" ]]; then
|
||||
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
|
||||
@ -2278,6 +2308,9 @@ elif [[ -f "$amazongames_path2" ]]; then
|
||||
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
|
||||
@ -2287,11 +2320,17 @@ if [[ -f "$itchio_path1" ]]; then
|
||||
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
|
||||
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
|
||||
fi
|
||||
|
||||
if [[ -f "$legacygames_path1" ]]; then
|
||||
@ -2299,11 +2338,17 @@ if [[ -f "$legacygames_path1" ]]; then
|
||||
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
|
||||
@ -2311,11 +2356,17 @@ if [[ -f "$humblegames_path1" ]]; then
|
||||
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
|
||||
@ -2323,11 +2374,17 @@ if [[ -f "$indiegala_path1" ]]; then
|
||||
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
|
||||
@ -2335,11 +2392,17 @@ if [[ -f "$rockstar_path1" ]]; then
|
||||
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
|
||||
@ -2347,11 +2410,17 @@ if [[ -f "$glyph_path1" ]]; then
|
||||
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 "$minecraft_path1" ]]; then
|
||||
@ -2359,11 +2428,17 @@ if [[ -f "$minecraft_path1" ]]; then
|
||||
minecraftshortcutdirectory="\"$minecraft_path1\""
|
||||
minecraftlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/\" %command%"
|
||||
minecraftstartingdir="\"$(dirname "$minecraft_path1")\""
|
||||
echo "export minecraftshortcutdirectory=$minecraftshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export minecraftlaunchoptions=$minecraftlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export minecraftstartingdir=$minecraftstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
elif [[ -f "$minecraft_path2" ]]; then
|
||||
# Minecraft is installed at path 2
|
||||
minecraftshortcutdirectory="\"$minecraft_path2\""
|
||||
minecraftlaunchoptions="STEAM_COMPAT_DATA_PATH=\"${logged_in_home}/.local/share/Steam/steamapps/compatdata/MinecraftLauncher/\" %command%"
|
||||
minecraftstartingdir="\"$(dirname "$minecraft_path1")\""
|
||||
echo "export minecraftshortcutdirectory=$minecraftshortcutdirectory" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export minecraftlaunchoptions=$minecraftlaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
echo "export minecraftstartingdir=$minecraftstartingdir" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ -f "$psplus_path1" ]]; then
|
||||
@ -2371,11 +2446,17 @@ if [[ -f "$psplus_path1" ]]; then
|
||||
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
|
||||
@ -2383,11 +2464,17 @@ if [[ -f "$vkplay_path1" ]]; then
|
||||
vkplayhortcutdirectory="\"$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
|
||||
vkplayhortcutdirectory="\"$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
|
||||
|
||||
|
||||
@ -2396,62 +2483,62 @@ fi
|
||||
|
||||
if [[ $options == *"Xbox Game Pass"* ]]; then
|
||||
# User selected Xbox Game Pass
|
||||
chromedirectory="\"$chrome_path\""
|
||||
xboxchromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://www.xbox.com/play --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export xboxchromelaunchoptions=$xboxchromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"Netflix"* ]]; then
|
||||
# User selected Netflix
|
||||
chromedirectory="\"$chrome_path\""
|
||||
netlfixchromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://www.netflix.com --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export netflixchromelaunchoptions=$netflixchromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"GeForce Now"* ]]; then
|
||||
# User selected GeForce Now
|
||||
chromedirectory="\"$chrome_path\""
|
||||
geforcechromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://play.geforcenow.com --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export geforcechromelaunchoptions=$geforcechromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"Hulu"* ]]; then
|
||||
# User selected Hulu
|
||||
chromedirectory="\"$chrome_path\""
|
||||
huluchromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://www.hulu.com/welcome --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export huluchromelaunchoptions=$huluchromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"Disney+"* ]]; then
|
||||
# User selected Disney+
|
||||
chromedirectory="\"$chrome_path\""
|
||||
disneychromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://www.disneyplus.com --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export disneychromelaunchoptions=$disneychromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"Amazon Prime Video"* ]]; then
|
||||
# User selected Amazon Prime Video
|
||||
chromedirectory="\"$chrome_path\""
|
||||
amazonchromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://www.amazon.com/primevideo --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export amazonchromelaunchoptions=$amazonchromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"Youtube"* ]]; then
|
||||
# User selected Youtube
|
||||
chromedirectory="\"$chrome_path\""
|
||||
youtubechromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://www.youtube.com --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export youtubechromelaunchoptions=$youtubechromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"Amazon Luna"* ]]; then
|
||||
# User selected Amazon Luna
|
||||
chromedirectory="\"$chrome_path\""
|
||||
lunachromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://luna.amazon.com/ --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export lunachromelaunchoptions=$lunachromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"Twitch"* ]]; then
|
||||
# User selected Twitch
|
||||
chromedirectory="\"$chrome_path\""
|
||||
twitchchromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://www.twitch.tv/ --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export twitchhromelaunchoptions=$twitchchromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
if [[ $options == *"movie-web"* ]]; then
|
||||
# User selected movie-web
|
||||
chromedirectory="\"$chrome_path\""
|
||||
moviewebchromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://movie-web.app/ --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
echo "export moviewebchromelaunchoptions=$moviewebchromelaunchoptions" >> ${logged_in_home}/.config/systemd/user/env_vars
|
||||
fi
|
||||
|
||||
|
||||
@ -2463,8 +2550,6 @@ fi
|
||||
# Check if any custom websites were provided
|
||||
if [ ${#custom_websites[@]} -gt 0 ]; then
|
||||
# User entered one or more custom websites
|
||||
# Set the chromedirectory variable
|
||||
chromedirectory="\"$chrome_path\""
|
||||
|
||||
# Convert the custom_websites array to a string
|
||||
custom_websites_str=$(IFS=", "; echo "${custom_websites[*]}")
|
||||
@ -2487,10 +2572,6 @@ if [ ${#custom_websites[@]} -gt 0 ]; then
|
||||
|
||||
# Capitalize the first letter of the website name
|
||||
website_name="$(tr '[:lower:]' '[:upper:]' <<< "${website_name:0:1}")${website_name:1}"
|
||||
|
||||
# TODO: `chromelaunchoptions` is unused (SC2034)
|
||||
# Set the chromelaunchoptions variable for this website
|
||||
chromelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://$clean_website/ --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user