Update NSLGameScanner.py

This commit is contained in:
Roy 2024-02-18 06:25:23 -08:00 committed by GitHub
parent b604b45b11
commit c041991ce5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1021,8 +1021,8 @@ if new_shortcuts_added or shortcuts_updated:
# Create the path to the output file # Create the path to the output file
output_file_path = f"{logged_in_home}/.config/systemd/user/NSLGameScanner_output.log" output_file_path = f"{logged_in_home}/.config/systemd/user/NSLGameScanner_output.log"
# Open the output file in append mode # Open the output file in write mode
with open(output_file_path, 'a') as output_file: with open(output_file_path, 'w') as output_file:
for game in games: for game in games:
# Skip if 'appname' or 'exe' is None # Skip if 'appname' or 'exe' is None
if game.get('appname') is None or game.get('exe') is None: if game.get('appname') is None or game.get('exe') is None: