Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-12-2009, 06:15 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
Can bash scripts call graphical windows?

Are there commands to call graphical interfaces from a script?
Things like a textbox with a prompt before it and "Ok" and "Cancel" buttons under it so user input could be made a bit more mouse friendly.

Or in general, if bash can't do it, if one wants to start scripting or coding things for the desktop environment... Where does one start for simplicity?
Old 03-12-2009, 06:22 AM   #2
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
yes, there's kdialog for kde dialogs and zenity for gtk and some more .Just look at their manpages and dokumentation.
For larger scale applications you can look at kommander, which is a modified qt-designer, and lets you create complete gui applications with a small set of builtin commands + bash (+ all other script languages you might desire).
Old 03-12-2009, 06:45 AM   #3
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
See for documentation and examples. A very trivial example would be:
Example 12. --yesno message box

kdialog --title "Example YesNo dialog" --yesno "System is not \
currently connected.\n Do you want to connect now?"
Arch Linux

Last edited by T74marcell; 03-14-2009 at 02:12 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
export call in bash script Donald1000 Linux - Software 10 03-12-2009 09:03 PM
bash scripts hoffmanyew Programming 3 08-11-2005 02:27 AM
Asking a C program to call a bash script sceadu Programming 4 07-28-2005 09:52 PM
call php scripts djgerbavore Programming 3 11-30-2004 08:17 AM
how to call c programm from perl scripts akaash Programming 4 03-18-2004 08:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration