Zenity, a GUI mode for Shell/Bash script

July 3, 2014 | By | 1 Reply More

On my previous learning, I use “dialog” to visualize my shell script program. Dialog lets users to visualize my script in better way compared to original shell program. But Dialog does not allow users to use their mouse to interact with the shell script program. See the following script built using Dialog.

gamblisfx app installer

And fortunately there is a better way to create GUI application from shell script called Zenity. With Zenity we can create a full GUI mode which user can interact using mouse, keyboard just like any other GTK GUI applications. Here is the example of a shell script visualized using Zenity.

zenity

The above radio list program was coded with the following script:

[codesyntax lang=”bash”]

[/codesyntax]

Zenity should be available by default on most Linus distribution but if its not, you can install it on your Ubuntu using the following command:

[codesyntax lang=”bash”]

[/codesyntax]

Tags: , ,

Category: Script

Leave a Reply