修复环境变量问题

This commit is contained in:
Seven Yu 2019-12-03 13:25:54 +08:00
parent ab5dd69db3
commit cb26d696b8

View File

@ -13,6 +13,7 @@ const { shell } = require('electron');
pluginInfo = JSON.parse(fs.readFileSync(path.join(__dirname, 'plugin.json')));
logo = nativeImage.createFromPath(path.join(__dirname, 'logo.png'));
process.env.PATH += ':/usr/local/bin:/usr/local/sbin'
messageBox = (options, callback) => {
dialog.showMessageBox(BrowserWindow.getFocusedWindow(), options, index => {