Skip to content

[Linux/Gnome/Ubuntu 20.04] Tray icon not working #24045

Closed

Description

@antanasja

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • v9.0.3
  • Operating System:
    • Ubuntu 20.04
  • Last Known Working Electron version:
    • v9.0.2

Expected Behavior

I expected to see tray icon.

Actual Behavior

I see incorrect tray icon (3 dots).

To Reproduce

https://github.com/susp3nse/electron-tray-icon-not-working-on-ubuntu

git clone https://github.com/susp3nse/electron-tray-icon-not-working-on-ubuntu.git
npm install
npm run start

Screenshots

https://ibb.co/zssLqfd

Additional Information

Tested it on windows and UbuntuDDE (Ubuntu running Deepin desktop enviroment) and it works fine. I guess it's an issue with Gnome.

Activity

  1. changed the title [-]Tray icon not working on Ubuntu 20.04[/-] [+][Linux/Gnome/Ubuntu 20.04] Tray icon not working[/+] on Jun 10, 2020
  2. vladimiry commented on Jun 10, 2020

    @vladimiry

    Did you try increasing the icon size (32x32)? The issue is not reproducible for me on Ubuntu 20.04 (Gnome Shell, FHD screen resolution).

  3. antanasja commented on Jun 10, 2020

    @antanasja
    Author

    Well that's strange, i'm home now also using Ubuntu 20.04 and it works fine here with same icon and stuff. The only difference is in screen size. At work is 2k and at home is 1080p. Could this cause some inconsistency? Should i add multiple icons for multiple resolutions or so? I'm new to electron and desktop apps. @vladimiry

  4. vladimiry commented on Jun 10, 2020

    @vladimiry

    I don't have a 2k screen to test the case. Maybe try increasing the image size first (32x32, 64x46, 128x128).

  5. antanasja commented on Jun 10, 2020

    @antanasja
    Author

    Will try that tomorrow and update status with some news.

  6. antanasja commented on Jun 10, 2020

    @antanasja
    Author

    Found the problem, sorry for false alarm. It was caused because i was running app using terminal in IDE (PhpStorm) and my guess is that it ran in some kind of tmp container and couldn't access assets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions