Removed Pipe

This commit is contained in:
Roy 2024-02-16 19:05:02 -08:00 committed by GitHub
parent 3686a6323a
commit bdc2ed7b12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -905,15 +905,6 @@ if amazon_games:
# Push down when more scanners are added
#PipingInfoToDeckyPlugin
PIPE_PATH = "/tmp/NSLGameScanner_pipe"
# Check if the pipe does not exist
if not os.path.exists(PIPE_PATH):
# Create the named pipe
os.mkfifo(PIPE_PATH)
# Only write back to the shortcuts.vdf and config.vdf files if new shortcuts were added or compattools changed
if new_shortcuts_added or shortcuts_updated:
print(f"Saving new config and shortcuts files")
@ -1040,7 +1031,6 @@ if new_shortcuts_added or shortcuts_updated:
# Print the shortcut information in JSON format
message = json.dumps(shortcut_info)
print(message, flush=True) # Print to stdout
pipe.write(message + '\n') # Write to the pipe
print("All finished!")