1
<page xmlns="http://projectmallard.org/1.0/"
5
<link type="guide" xref="index#dialogs"/>
6
<desc>Use the <cmd>--password</cmd> option.</desc>
8
<title>Password Dialog</title>
10
Use the <cmd>--password</cmd> option to create a password entry dialog.
13
The password entry dialog supports the following options:
18
<title><cmd>--username</cmd></title>
19
<p>Display the username field.</p>
24
The following example script shows how to create a password entry dialog:
30
ENTRY=`zenity --password --username`
34
echo "User Name: `echo $ENTRY | cut -d'|' -f1`"
35
echo "Password : `echo $ENTRY | cut -d'|' -f2`"
40
echo "An unexpected error has occurred.";;
44
<figure id="zenity-password-screenshot">
45
<title>Password Entry Dialog Example</title>
46
<desc><app>Zenity</app> password entry dialog example</desc>
47
<media type="image" mime="image/png" src="figures/zenity-password-screenshot.png"/>