OS:debian7(wheezy) xfce.
工作需要随时开着thunderbird来占据一个窗口,有时候觉得不方便需要关掉,又怕错过重要邮件,这里我们使用xfce4-mailwatch 来解决
默认已经安装好了thunderbird,查看thunderbird的命令所在
#type thunderbird
/usr/bin/thunderbird
安装xfce-mailwatch
#apt-get install xfce4-mailwatch-plugin
然后在面板上添加Add New Items 加 Mail Watcher
点属性进行配置,在下面External Programs
里面
Run on Click: 填thunderbird
Run on New Messages:填 notify-send "New Mail" "You have new messages in your inbox " -i xfce-newmail
close掉后就可以了。
如果没有提示, 检查下是否装了libnotify-bin, 这个就是notify-send命令
#apt-get install libnotify-bin