function checkLinuxTraySupport (cb) {
  const cp = require('child_process')

  // Check that libappindicator libraries are installed in system.
  cp.exec('ldconfig -p | grep libappindicator', (err, stdout) => {
    if (err) return cb(err)
    cb(null)
  })
}
Check for libappindicator support before creating tray icon.