var exec = require('child_process').exec;
exec('notify-send -t 5000 -i "Hello Karl"', function (err, stdout, stderr){
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr);
if (err !== null)
throw err;
});我得到了错误:
Error: Command failed: /bin/sh -c notify-send -t 5000 -i "Hello Karl"
No summary specified.发布于 2016-01-25 20:23:54
notify-send -t 5000 "Hello Karl"这是我输入它的命令的错误。
https://stackoverflow.com/questions/34992486
复制相似问题