Password Dialog

Use the --password option to create a password entry dialog.

The password entry dialog supports the following options:


Display the username field.

The following example script shows how to create a password entry dialog:


ENTRY=`zenity --password --username`

case $? in
	 	echo "User Name: `echo $ENTRY | cut -d'|' -f1`"
	 	echo "Password : `echo $ENTRY | cut -d'|' -f2`"
                echo "Stop login.";;
                echo "An unexpected error has occurred.";;

Password Entry Dialog Example

Zenity password entry dialog example