squalou / google-chat-linux

source of a fork of google-chat-linux unofficial client from robyf
51 stars 10 forks source link

Desktop notifications appear twice #9

Closed squalou closed 4 years ago

squalou commented 4 years ago

2 notifications sent to notification center when one message received.

One idea would be to 'block' notifications frmo the secondary window, unfortunately they both have the same 'name' from the notification-center point of view. (probably the WM class is used)

TL/DR;

In order to make "try icon color change" work again ... I used a secondary hidden window where chat is 'displayed', to intercept favicon change. (in this window, nodeIntegration is used, and if used on main window in Unfortunately there is a side effect : each window send a notification to the notification center (whichever DE you use, there is probably one)

squalou commented 4 years ago

Solved by removing the hidden window, replaced with envirnonment variable set to disable async hook