Tray does not appears on Linux

The tray example does not work on Linux. The tray is not shown.
Tested with atom-shell 0.22.3 + Ubuntu 14 and atom-shell 0.22.3 + Debian Jessi

var app = require('app');
var Menu = require('menu');
var Tray = require('tray');

var appIcon = null;

app.on('ready', function(){
  appIcon = new Tray('icon.png');
  var contextMenu = Menu.buildFromTemplate([
    { label: 'Item1', type: 'radio' },
    { label: 'Item2', type: 'radio' },
    { label: 'Item3', type: 'radio', checked: true },
    { label: 'Item4', type: 'radio' },
  ]);
  appIcon.setToolTip('This is my application.');
  appIcon.setContextMenu(contextMenu);
});

1 thought on “Tray does not appears on Linux

Comments are closed.