Create GUI dialogs in one line of code

The Zenity command-line utility lets you create simple dialog boxes with your own data or with the output of utilities and applications.

Zenity is a command-line GUI creator that has been around since 2012 and is pre-installed on most versions of Linux, including Raspberry Pis. Zenity isn’t designed to be a high-level GUI development tool, but if you just need some basic scripting with dialogs, then Zenity might be a perfect fit.

I was amazed that in one line of Bash code I was able to show:

  • stats in a message dialog
  • a web page in a dialog
  • CSV data or SQL queries in a list dialog


Use Express-Checkout link below to read the full article (PDF).

Posted by Contributor