How to add text to ubuntu app indicator with with NW.js (or electron)?
Asked Answered
M

1

8

I know that it is possible to create a tray icon for a node-webkit application like so:

var tray = new gui.Tray({ title: 'Tray', icon: 'img/icon.png' });

but on Ubuntu the title won't be displayed. Is there anyway to achieve this?

I would like to use the tray icon to display dynamic information, which would be really annoying to do by changing the icon itself.

I would also be fine with using electron, if there is a way to implement it there.

EDIT:

For those interested in participating: I created some issues on github for electron and for chromium.

Malapropos answered 2/3, 2016 at 18:25 Comment(1)
Still no change on this on. If you want to change this, please upvote the electron issue linked above in the question and this new chrome issue: bugs.chromium.org/p/chromium/issues/…Malapropos
S
0

This seems to be working for me with electron, see this issue

Electron 0.37.2., Ubuntu 15.10

Soupspoon answered 28/3, 2016 at 13:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.