mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2025-04-09 21:51:17 +02:00
added Notifications for Desktop Mode
This commit is contained in:
parent
3c65cbfd15
commit
414e92d162
@ -1551,12 +1551,20 @@ if new_shortcuts_added or shortcuts_updated:
|
||||
except IOError as e:
|
||||
print(f"Error writing to shortcuts.vdf: {e}")
|
||||
|
||||
|
||||
# Print the created shortcuts
|
||||
if created_shortcuts:
|
||||
print("Created Shortcuts:")
|
||||
for name in created_shortcuts:
|
||||
print(name)
|
||||
|
||||
# Combine the names of created shortcuts into a single notification message
|
||||
notification_text = "Added the following games to your Steam library:\n" + "\n".join(created_shortcuts)
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
subprocess.run(['zenity', '--notification', '--text', notification_text, '--timeout=5'])
|
||||
|
||||
# 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 write mode
|
||||
|
Loading…
x
Reference in New Issue
Block a user