Service was failing, fixed check on the epic paths

This commit is contained in:
Roy 2024-01-25 22:24:04 -08:00 committed by GitHub
parent 52a5949e47
commit 3d818cde98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,11 +327,16 @@ print("Existing Shortcuts:")
for shortcut in shortcuts['shortcuts'].values():
print(f"AppID for {shortcut.get('appname')}: {shortcut.get('appid')}")
# Epic Games Scanner
item_dir = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{epic_games_launcher}/pfx/drive_c/ProgramData/Epic/EpicGamesLauncher/Data/Manifests/"
dat_file_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{epic_games_launcher}/pfx/drive_c/ProgramData/Epic/UnrealEngineLauncher/LauncherInstalled.dat"
if os.path.exists(dat_file_path):
if os.path.exists(dat_file_path) and os.path.exists(item_dir):
with open(dat_file_path, 'r') as file:
dat_data = json.load(file)