pynotifier icon indicating copy to clipboard operation
pynotifier copied to clipboard

image not showing in linux

Open MusheAbdulHakim opened this issue 3 years ago • 7 comments

I used this code:

`from pynotifier import Notification

Notification( title='Notification Title', description='Notification Description', icon_path='icons/bitcoin.png', # On Windows .ico is required, on Linux - .png duration=5, # Duration in seconds urgency='normal' ).send()`

the notification came alright but there was no icon . I am using Parrot Os

MusheAbdulHakim avatar May 09 '21 13:05 MusheAbdulHakim

Thank you for your feedback. To display an icon, you need to set its absolute path. I will note it to the readme.md file soon. (Done)

YuriyLisovskiy avatar Jun 10 '21 10:06 YuriyLisovskiy

I'm also on linux. No icon is shown event when an absolute path is used.

jhanarato avatar Apr 17 '22 05:04 jhanarato

Can confirm same issue on MacOS

ErykPiasecki07 avatar Jun 25 '22 20:06 ErykPiasecki07

Can confirm same issue on MacOS

The pynotifier uses pync module to display notifications on macOS. The pync uses terminal-notifier 2.0.0. I suppose there are some issues with the pync module or terminal-notifier application.

I will try to replace the pync with an alternative module or app.

YuriyLisovskiy avatar Aug 04 '22 09:08 YuriyLisovskiy

I'm also on linux. No icon is shown event when an absolute path is used.

It is strange. I will look into this issue and fix it as soon as possible.

YuriyLisovskiy avatar Aug 04 '22 09:08 YuriyLisovskiy

I'm also on linux. No icon is shown event when an absolute path is used.

On Ubuntu 20.04 LTS the icon works fine. What Linux distro are you using?

YuriyLisovskiy avatar Nov 30 '22 19:11 YuriyLisovskiy

Can confirm same issue on MacOS

Currently, it is not possible to display the custom icon for the notification on macOS with AppleScript (which is used for now), or an external tool (or maybe there is some, please let me know). If you have an idea and can implement it, please open the PR with relevant changes :)

YuriyLisovskiy avatar Feb 19 '23 21:02 YuriyLisovskiy