beeep icon indicating copy to clipboard operation
beeep copied to clipboard

Support for supplying image-data as a blob

Open muesli opened this issue 6 years ago • 3 comments

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

muesli avatar May 24 '19 09:05 muesli

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.

gen2brain avatar May 28 '19 16:05 gen2brain

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.

muesli avatar May 28 '19 17:05 muesli

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.

gen2brain avatar Jun 14 '19 02:06 gen2brain