Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systray icon doesn't show new messages anymore #1028

Closed
shagath opened this issue Aug 7, 2019 · 6 comments · Fixed by #1557
Closed

Systray icon doesn't show new messages anymore #1028

shagath opened this issue Aug 7, 2019 · 6 comments · Fixed by #1557

Comments

@shagath
Copy link

shagath commented Aug 7, 2019

It just stays grey. I love how the app can be hidden now to systray(was waiting for that feature a lot) but no indicators for a new message. It used to go blue iirc.


Caprine 2.34.0
Electron 5.0.6
win32 10.0.18945
Locale: en-US

@riverstore
Copy link

I have same problem from version 2.48.0. And sometime, when I use Caprine to chat with my friend, I seen the message but on his side, Messenger don't indicate that I read message.

Anyone know the problem please help. Thanks a lot.

Caprine 2.49.0
Electron 10.1.1
win32 10.0.18362
Locale: en-US

@dusansimic
Copy link
Collaborator

I think that the original issue is probably fixed by this time since it works on my machine but regarding your problem @riverstore, it could be that you have some unread message down in contact list. If that is not the case please let me know. If you know some specific way that I could reproduce this issue, that would be great.

@riverstore
Copy link

I'm using the latest version, but the problem still not fixed. And I may familiar with it ^^

@dotpointer
Copy link

dotpointer commented Jan 14, 2021

The system tray icon does not change when a new message is available here either, it is always grey. But this is on Debian 10 MATE. It used to work for a couple of months ago, not sure what version it was then.

Caprine 2.51.2
Electron 10.1.5
linux 4.19.0-13-amd64
Locale: sv

@dusansimic
Copy link
Collaborator

Facebook released a new Messenger UI for web which broke most of the Caprine features. Fixes are in progress for all issues including this one. You can see what is fixed so far here. Fixes will be available once that PR is merged.

@dotpointer
Copy link

dotpointer commented Jan 29, 2021

While waiting for this to be fixed I found a workaround for Linux desktops by making a script to display the relevant part of the Caprine main window title on a panel on the desktop.

In case a new message appear, then a part of the Caprine window title will be shown on the panel, like:
"(no of messages) Messenger" or "Name has sent a message".

If the main window is opened, then no text will be shown - check the window title directly instead. Also no text will be shown if no new messages are available.

Script to extract data from the window title:

#!/bin/bash
WNDTITLE=$(xwininfo -root -children|grep '"caprine" "Caprine"'|head -n1);
WNDTITLE=$(echo $WNDTITLE|sed 's/.*[0-9]x[0-9a-z]* "\(.*\)": .*/\1/');
if [ "$WNDTITLE" != "Messenger" ] && [ "$WNDTITLE" != "caprine" ]; then
  echo "$WNDTITLE";
else
  echo " ";
fi

Instructions for Debian 10 with MATE Desktop - item texts here may not be exact as they are translated from Swedish:

  1. Ensure you have xwininfo, try xwininfo -version, otherwise install it by running sudo apt install x11-utils.
  2. Put the above script in a suitable location, for example /home/your-username/caprine-checker.sh.
  3. Make it executable, chmod +x /home/your-username/caprine-checker.sh.
  4. Right-click on a panel somewhere, choose Add to panel..., then Command.
  5. You will get a clock in the panel, right click on it, choose Settings.
  6. Command: /home/your-username/caprine-checker.sh, Interval: 15 (or what you want), Maximum width: 20 (or what you want).
  7. Click Close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants