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

Caprine Icon Problem #1213

Closed
rahidulislam opened this issue Dec 9, 2019 · 24 comments
Closed

Caprine Icon Problem #1213

rahidulislam opened this issue Dec 9, 2019 · 24 comments

Comments

@rahidulislam
Copy link

---Caprine Icon does not show in Application Menu and Dock. I am using Elementary OS 5.1 Hera.

Caprine 2.41.1
Electron 7.1.1
linux 5.0.0-37-generic
Locale: en-US

@tracker1
Copy link

tracker1 commented Jan 2, 2020

I'm seeing this issue in both the latest appimage as well as the .deb ... I tried installing the latest snap, but it wouldn't launch.

@chrisjimallen
Copy link

chrisjimallen commented Feb 7, 2020

I am seeing the same issue with the .deb. Ubuntu 19.10.
Screenshot from 2020-02-07 11-37-29

Edit: I fixed this by doing the following:

  1. download https://github.com/sindresorhus/caprine/blob/master/media/Icon.png and rename to caprine.png
  2. copy this file to /usr/share/icons

@tracker1
Copy link

tracker1 commented Feb 7, 2020

@chrisjimallen thanks, now I just need to remember this when I get home.

@BananaManCJ
Copy link

This could be fixed by adding the appropriate sizes to /usr/share/icons/hicolor/x/apps/caprine.png in the .deb file. The only one icon now is at /usr/share/icons/hicolor/0x0/apps/caprine.png which makes no sense to me.

@BananaManCJ
Copy link

I have located the issue and will make a pull request soon

@alekksander
Copy link

alekksander commented Apr 25, 2020

i cannot confirm this one on kde's plasma. all of you guys are on gtk de?
Screenshot_20200425_154337
edit:
#1331

@tracker1
Copy link

tracker1 commented May 2, 2020

@alekksander I think you need to add a plugin for extra notification icons in current Gnome (unsure of others)... was kind of a pain iirc... Been on windows for a couple months because of work, will probably switch back soon-ish.

@BananaManCJ
Copy link

I made a deb that has just the Caprine icons and fixes it here. If you want to extract it to make sure I'm not installing malicious code, you can do dpkg-deb -R <path to deb>

@yermulnik
Copy link

@BananaManCJ Thanks for the .deb. I could install it w/o any issue and icons are where they're expected. Though Caprine's systray icon is still missing for me =( What else can I try to fix the issue?

@BananaManCJ
Copy link

@BananaManCJ Thanks for the .deb. I could install it w/o any issue and icons are where they're expected. Though Caprine's systray icon is still missing for me =( What else can I try to fix the issue?
Let me take a look

@BananaManCJ
Copy link

@BananaManCJ Thanks for the .deb. I could install it w/o any issue and icons are where they're expected. Though Caprine's systray icon is still missing for me =( What else can I try to fix the issue?

Try removing the folder /usr/share/icons/hicolor/0x0

@yermulnik
Copy link

@BananaManCJ no luck =( I'm on Linux Mint 18.3 Sylvia with Mate as DE.

@yermulnik
Copy link

yermulnik commented May 12, 2020

I wonder how do I debug Caprine. It doesn't output any messages to stdout/stderr when ran from CLI...

@BananaManCJ
Copy link

I'm on GNOME and the systray icon works fine, try running it with --debug. It's an electron app so that should work.

@yermulnik
Copy link

No output with --debug %-\

@BananaManCJ
Copy link

You do have "Show Tray Icon" enabled in the Caprine settings, right?

@yermulnik
Copy link

yermulnik commented May 12, 2020

Yeah, definitely I do. It's working fine up until (including) version 2.43.0 of Caprine. Any newer version fails to show systray icon. I've read through a bunch of issues here and in Electron repo and no workaround worked for me =( Thanks for helping though.

@BananaManCJ
Copy link

If you run it from source you can debug it

@BananaManCJ
Copy link

Saw that this fixes the icon problem

@yermulnik
Copy link

Saw that this fixes the icon problem

Is this something that should be done during build or a user can incorporate it after install or something?

@BananaManCJ
Copy link

Saw that this fixes the icon problem

Is this something that should be done during build or a user can incorporate it after install or something?

What distro are you using?

@yermulnik
Copy link

Saw that this fixes the icon problem

Is this something that should be done during build or a user can incorporate it after install or something?

What distro are you using?

Linux Mint 18.3 Sylvia (Ubuntu 16.04).

@BananaManCJ
Copy link

@yermulnik a missing system tray icon is a different issue, make a new issue

@dusansimic
Copy link
Collaborator

The app icon problem (desktop icon) is a bug in Electron Builder that builds the app for Linux. This is a bug that is present for a few years now and still is not fixed which is really bad. For now on Linux AFAIK deb package has an icon problem but AppImage and Snap don't have that problem or Arch in it's repositories. To fix it follow instructions in this issue or this comment.

Regarding tray icon, install libappindicator and if you're using Gnome install KStatusNotifierItem/AppIndicator Support extension.

As all issues are resolved or have a workaround, I'll close this issue.

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

No branches or pull requests

7 participants