diff --git a/src/main/tray.js b/src/main/tray.js index c44221f7..c2a8a665 100644 --- a/src/main/tray.js +++ b/src/main/tray.js @@ -50,7 +50,7 @@ function checkLinuxTraySupport (cb) { const cp = require('child_process') // Check that libappindicator libraries are installed in system. - cp.exec('ls /usr/lib*/libappindicator*', function (err, stdout) { + cp.exec('ldconfig -p | grep libappindicator', function (err, stdout) { if (err) return cb(err) cb(null) })