调整调用zeal和dash时失败的提示

This commit is contained in:
fofolee 2020-04-05 14:12:52 +08:00
parent 2d46e3a9a9
commit 5fd5144b4b

View File

@ -53,9 +53,9 @@ readDir = (path,callback) => {
} }
dash = query => { dash = query => {
let cmd = process.platform == 'win32' ? `start dash-plugin://query=${query}` : `open dash://${query}` let cmd = process.platform == 'win32' ? `start dash-plugin://query=${query}` : `open dash://${query}`;
exec(cmd, (err, stdout, stderr) => { exec(cmd, (err, stdout, stderr) => {
err && console.log(stderr); err && utools.showNotification(stderr, clickFeatureCode = null, silent = true);
}); });
} }