Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) Make desktop toast notifications cross platform #79

Closed
dfgHiatus opened this issue Jan 16, 2025 · 3 comments
Closed

(feat) Make desktop toast notifications cross platform #79

dfgHiatus opened this issue Jan 16, 2025 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@dfgHiatus
Copy link
Contributor

Currently, desktop notifications only show on Windows. This could also also be present on MacOS and Linux.

@dfgHiatus dfgHiatus added the enhancement New feature or request label Jan 16, 2025
@dfgHiatus dfgHiatus self-assigned this Jan 16, 2025
@dfgHiatus
Copy link
Contributor Author

dfgHiatus commented Jan 16, 2025

I found these libs, MIT Licensed:

EDIT: On notify-py's wiki:

As it stands (May 18, 2020), this is simply a notification service. There is no support for embedding custom actions (buttons, dialogs) regardless of platform. Other then telling you if the shell command was sent, there is also no confirmation on user action on the notification.

@dfgHiatus
Copy link
Contributor Author

On desktop-notifier's issues: samschott/desktop-notifier#11:

You can still develop and debug on a mac but you will either need to manually sign the Python executable or (better option) install Python from https://python.org/ which installs a signed framework build.

TL;DR, unless we sign our code ($99/year, thank you Apple very cool) desktop notifications on MacOS aren't really gonna be a thing, especially with button interactions. notify-py seems to be plagued by the same issue.

@dfgHiatus
Copy link
Contributor Author

Going to rest on the MacOS stuff, but if we ever need a workaround there's this: https://stackoverflow.com/questions/48856158/change-icon-of-notification-when-using-osascript-e-display-notification

osascript -e 'tell application "Finder"' -e 'activate' -e 'display dialog "this is the note icon." with icon note' -e 'end tell'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant