Use the --text-info option to create a text information dialog.
The text information dialog supports the following options:
--filename=filenameSpecifies a file that is loaded in the text information dialog.--editableAllows the displayed text to be edited. The edited text is returned to standard error when the dialog is closed.
The following example script shows how to create a text information dialog:
#!/bin/sh
FILE=`zenity --file-selection \
--title="Select a File"`
case $? in
0)
zenity --text-info \
--title=$FILE \
--filename=$FILE \
--editable 2>/tmp/tmp.txt;;
1)
echo "No file selected.";;
-1)
echo "No file selected.";;
esac
text information dialog example
