Skip to content

Use non random ID for trayIcon #5969

Closed
Closed

Description

@andia89
  • Electron version: All
  • Operating system: Ubuntu 16.04

Looking at the source code,

base::GenerateGUID(), image.AsImageSkia(), empty));
it seems that for the AppIndicator tray icon uses a randomly generated ID for the tray icon. This number changes everytime the app starts. This creates problems, because the ID is used in Ubuntu for changing order of tray icons, which is impossible if the ID changes everytime the app starts.

Is there a reason why a Random number is used as AppIndictor ID? Is it possible to change that to let's say the app name, or at least to something that is not random?

Activity

  1. zcbenz commented on Jun 10, 2016

    @zcbenz
    Contributor

    I think we can change the ID to something like app_name_1.

  2. andia89 commented on Jun 10, 2016

    @andia89
    Author

    Great! Would you accept a PR with a fix?

  3. zcbenz commented on Jun 10, 2016

    @zcbenz
    Contributor

    Sure, a PR would be awesome.

  4. added a commit that references this issue on Jun 10, 2016
    c4f5708
  5. andia89 commented on Jun 10, 2016

    @andia89
    Author

    Alright, pushed a fix. seems to be working :)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions