ms7m / notify-py

:speech_balloon: | A simple Python Module for sending cross-platform desktop notifications on Windows, macOS and Linux
MIT License
262 stars 26 forks source link

Notification Sound not working on Linux #32

Closed MusheAbdulHakim closed 3 years ago

MusheAbdulHakim commented 3 years ago

I am using parrot os. I have use the library for my project and everything works great except for the sound. At first it used .mp3 and it threw an error so i changed to .wav file and now i am not having errors but still when the notification comes, there is no sound.

ms7m commented 3 years ago

Thanks for the report.

Can you retry with logging enabled and show what appears on the terminal?

from notifypy import Notify

n = Notify(enable_logging=True)

n.send()

Thanks!

MusheAbdulHakim commented 3 years ago

This is the output in the terminal:

Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from notifypy import Notify
>>> n = Notify(enable_logging=True)
2021-05-09 20:38:40.113 | INFO     | notifypy.notify:__init__:49 - Logging is enabled.
2021-05-09 20:38:40.123 | INFO     | notifypy.os_notifiers.linux:<module>:16 - Jeepney and Dbus is available. Using DBUS for notifications..
>>> n.send()
2021-05-09 20:38:45.221 | DEBUG    | notifypy.os_notifiers.linux:send_notification:182 - linux: opened dbus connection
2021-05-09 20:38:45.621 | DEBUG    | notifypy.os_notifiers.linux:send_notification:223 - confirmed notification sent! id: Message(Header(<Endianness.little: 1>, <MessageType.method_return: 2>, <MessageFlag.no_reply_expected: 1>, 1, 4, 19, fields={<HeaderFields.destination: 6>: ':1.113', <HeaderFields.signature: 8>: 'u', <HeaderFields.reply_serial: 5>: 2, <HeaderFields.sender: 7>: ':1.115'}), (1,))
2021-05-09 20:38:45.621 | INFO     | notifypy.notify:send_notification:333 - Sent notification.
True

Screenshot Screenshot

ms7m commented 3 years ago

Thanks! 👍🏽

I think I know what the issue is. I'll push out a fix later today.

MusheAbdulHakim commented 3 years ago

alright

silasrm commented 3 years ago

Hi,

In pip is outdated.

MusheAbdulHakim commented 3 years ago

Yh i don't think he has fix it.

ms7m commented 3 years ago

I will build + publish later today.

MusheAbdulHakim commented 3 years ago

okay thanks

ms7m commented 3 years ago

v0.3.3 has been published to PyPI! Please reopen this issue or submit a new one if this issue still occurs!

Thank you for your help!

MusheAbdulHakim commented 3 years ago

I just tested it and is working fine.Thanks