added log for the json info

This commit is contained in:
Roy 2024-02-18 06:13:39 -08:00 committed by GitHub
parent e5153c06e0
commit f62bc75eda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1040,4 +1040,10 @@ if new_shortcuts_added or shortcuts_updated:
print("All finished!") print("All finished!")
# Create the path to the output file
output_file_path = f"{logged_in_home}/.config/systemd/user/NSLGameScanner_output.log"
# Open the output file in append mode
with open(output_file_path, 'a') as output_file:
# Print the shortcut information to the output file
print(message, file=output_file, flush=True)