Shells scripting - How to create GUI dialogs for GNOME and KDE?

I love scripting and when you have GUI utilities to create a dialog box from scripts, it makes your life easy.
Zenity and KDialog tools allow you to create GNOME- and KDE-specific front ends for scripts.
FTA, "...Because Linux developers have made great strides in improving Linux's desktop interfaces and GUI applications, users have had no reason to focus on the command line. New users especially tend to be wary of the command-line interface (CLI) and favor the graphical environments (GUI) ..."
Read more at Linux.com
For example consider following small command:
$ zenity --info --text "Welcome to nixCraft weblog" --title='Hi there!'
Output:

Pretty easy eah? ![]()
You may also be interested in other helpful articles:
- Windows PowerShell vs UNIX BASH Shell
- Tutorial: Working with UNIX and Linux Shell
- Linux screen command tutorial / how to
- Howto: Linux shell restricting access
- GNOME 2.16 released and available for download
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


im getting following error message
(zenity:14884): Gtk-WARNING **: cannot open display: