Zenity is a program often used in scripts to display graphical boxes that very often prompt for user input. It is a rewrite of the old, but still used gdialog program, and has a 'gdialog wrapper script' so that it can be used in older scripts.

learn more… | top users | synonyms

1
vote
2answers
129 views

How do I use/bundle a custom version of Zenity in my script?

I'm writing a script using zenity. But zenity 3.4.0 has a bug (has been fixed in latest Ubuntu versions), it returns exit code 139 instead of 0 or 1. But I need to use it in scenarios where the bug is ...
1
vote
2answers
2k views

How to use inotifywait in a non-blocking way and mail the results?

I've tried several times to test my script, but with no success. This is the script: zenity --question --text "my text" if [ $? -eq 1 ]; then zenity --warning --text "my text" else ping -n -...
1
vote
1answer
2k views

Running UCK causes zenity crashed

I was very satisfied with Ubuntu Customization kit on Ubuntu previous versions but with 12.04, it leads to crash zenity and disappear the GUI and nothing occur.I tried the old version of this package ...
2
votes
1answer
1k views

What is “zenity” and did it crash?

I am on Ubuntu 12.04. I was running the Ubuntu customization kit but it disappeared with the following message: "The application zenity closed unexpectedly". When I further ran it, it just closed ...
0
votes
1answer
844 views

In 12.04, does zenity crash on you too? [closed]

When I run zenity --list --title=111 --column=222 --column=333 ab cd ef gh and select any line with a mouse (or keyboard) and then click on "Ok", I got: $ zenity --list --title=111 --column=222 --...
-1
votes
2answers
634 views

how-to properly create a launcher (.desktop-file) - unresolved & zenity hangs

Title: zenity hangs & .desktop files dont have the desired effect Environment: Ubuntu Oneiric x64, gnome-shell, zfsonlinux Motivation: Automagically save state of all VM's (and config) while ...
3
votes
1answer
2k views

How do I set a click action on zenity --notification?

Running echo "message:hi" | zenity --notification --listen I can click the bubble and it disappears. The zenity program keeps running until I Ctrl-C. Is there a way to "catch" the click and make ...
6
votes
4answers
3k views

Zenity and text formating

I just discovered that zenity support html tags zenity --error --text "hello <b>world</b>" but how to make it work with "entry" type ? zenity --entry --text "hello <b>world</b&...
3
votes
1answer
93 views

Is there an application to create windows with messages?

I want to do something to create a window, preferably marked as on-top, with a configurable message. Is there an Ubuntu package for that? The idea to put the relevant command inside a script: #!/...
4
votes
3answers
5k views

How to call zenity from cron script?

Example script error.sh: #! /bin/bash zenity --error --text='Something very bad has happened!' My incron-config: ~/Documents IN_MOVED_TO ~/scripts/error.sh If I run error.sh in terminal GUI ...
0
votes
1answer
4k views

output terminal redirect to zenity

Let's explain you my doubt. We all know that >& is shell syntax for "fold a file descriptor into another". So 2>&1 means that i want to redirect stderr to the stdin, this is simple and ...
0
votes
1answer
1k views

bash script and zenity progress

I have this cmds: (youtube-dl http://www.youtube.com/watch?v=HhoewflkQu0) | zenity --progress --width=400 --height=100 --title="Scaricamento" --text "Scaricamento in corso..." --auto-close --pulsate ...
6
votes
3answers
3k views

Where's documented combo box usage with zenity?

I found by chance it was possible to display a combo box with zenity (version tested: 2.32.1). See the following code: #!/bin/bash array=(a b c d e) value=$(zenity --entry --title "Window title" --...
4
votes
1answer
3k views

How to use a zenity progress bar with cclive

I tried to use a zenity progress bar with cclive. I'm writting a script to download web videos files and I wanna see the progression of the download. But when I try something like $cclive <url&...
1
vote
1answer
1k views

How to open a file in gedit with zenity --file-selection as root

I try to open a file in gedit with the file-selection option of zenity. It's very easy to do it for file that i can access in normal mode, but I wanna open too some configuration files (as for exemple ...
5
votes
2answers
1k views

Add unity quicklist launcher with a zenity command

I try to add a quicklist launcher for gedit that allowed me to open a new doc in gedit directly from unity dash so I tried to add this command to my OpenDoc Shortcut Group [OpenDoc Shortcut Group] ...
0
votes
2answers
328 views

What's wrong with this Zenity code?

What’s wrong with this code? #!/bin/bash ARCH=$(uname -m) if ["$ARCH" = "i686"]; then zenity --info --title="Architechture Checker" --text="Your Architechture is 32-Bit" if ["$ARCH" = "x86_64"];then ...
1
vote
2answers
694 views

Add Progress Bar

I would like to include a zenity progress bar for this part of my script: zenity --question --title "GUI" --text "Sync Music to iPad?" if [[ $? == 0 ]] ; then scp -r "$FOLDER" root@192.168.0....
5
votes
1answer
875 views

Reliable alert dialogs from the shell

I'd like to have a message pop up in response to various system events, mostly in order to be able to set reminders for myself from a shell session. There are a few ways to do this; zenity seems to ...
2
votes
1answer
492 views

zenity script for zsync

Can someone make a simple zenity script for zsync which just takes the location of the file to be synced and the zsync file and show progress ?
5
votes
2answers
5k views

How to load a `zenity` List Dialog with space-embedded data from `ls`?

I'm having problems loading a zenity List Dialog when the data contains spaces. It is straight-forward when there are no spaces in the listed data, but I don't know of a simple/standard method for ...