Zenity Tutorial – Display Info dialog box

July 4, 2014 | By | Reply More

Zenity adds Graphical Interface to shell scripting program. Zenity adds more functionality to Shell scripting program. On this tutorial, I am going to show you how to show an info dialog using Zenity. We don’t have to worry about GUI designer. We only focus to Shell scripting. Zenity will handle the GUI.

Create a new file, say it hello.sh. You can use your favorite editor such as nano or Atom (recommended). Type the following lines to it:

[codesyntax lang=”bash”]

[/codesyntax]

Save it and make it executable.

[codesyntax lang=”bash”]

[/codesyntax]

Now execute it to see the result

[codesyntax lang=”bash”]

[/codesyntax]

You should see the following info box appear.

zenity info box

Tags: , , ,

Category: Script

Leave a Reply