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

Support for supplying image-data as a blob #27

Open
muesli opened this issue May 24, 2019 · 3 comments
Open

Support for supplying image-data as a blob #27

muesli opened this issue May 24, 2019 · 3 comments

Comments

@muesli
Copy link
Contributor

muesli commented May 24, 2019

Would be nice if beeep offered a way to supply raw image data as a blob.

@gen2brain
Copy link
Owner

I think it is only possible on Linux, but will need to check, I remember it was possible to send image-data as a hint, which contains raw data. For Windows and macOS don't think there is a way.

@muesli
Copy link
Contributor Author

muesli commented May 28, 2019

I guess we could generate a temporary file that gets deleted again when the notification expires on other platforms. Frankly though, I'm not sure where I'd rather implement that. In a central place like beeep, which probably knows best how to handle image data in a cross platform fashion and when the notifications expire - or in each individual app separately.

I guess I can see good arguments for both sides.

@gen2brain
Copy link
Owner

It seems that both Linux and Web can work with bytes, so that is like 50% so I guess it makes sense to handle bytes here. Not sure what is the best approach, to make appIcon an interface? For actions, I thought something like NotifyWithActions or similar can work but this is a different case.

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

No branches or pull requests

2 participants