错误框

使用 --error 选项创建一个错误对话框。

下面的脚本示范了如何创建一个错误对话框:

#!/bin/bash

zenity --error \
--text="找不到 /var/log/syslog。"

错误框范例

Zenity 错误对话框范例