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

by on July 29, 2006 · 2 comments· Last updated July 29, 2006

gnome logo

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:
zenity command output

Pretty easy eah? ;)



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 2 comments… read them below or add one }

1 Francis August 26, 2008 at 5:09 am

im getting following error message

(zenity:14884): Gtk-WARNING **: cannot open display:

Reply

2 Linus December 16, 2011 at 2:56 pm

use this parameter

–display=DISPLAY

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 8 + 8 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: