frewsxcv / rust-notifica

Small, cross-platform Rust crate for sending system notifications
https://crates.io/crates/notifica
Apache License 2.0
283 stars 8 forks source link

optionally specify an image #3

Open hayd opened 5 years ago

hayd commented 5 years ago

I'm not sure what a cross platform API could look like for this.

it could be an enum rather than arbitrary images...

kunicmarko20 commented 5 years ago

https://github.com/hoodie/notify-rust/blob/940dbcb112a9de571dfaca20bb25eb10d9cf067d/src/lib.rs#L264-L278

notify-rust allows data, path or a system image (if I am correct)?

Not sure about other libs but if this would be possible cross platform it would be awesome

flying-sheep commented 5 years ago

So in summary, the user should get the ability to specify both an icon and an image.

kunicmarko20 commented 5 years ago

So for macOS there is no way to provide image path? Only existing app icons?

flying-sheep commented 5 years ago

see edit