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

0
votes
1answer
835 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
624 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 ...
2
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 ...
3
votes
1answer
92 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
4k 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 ...
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
326 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
687 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" ...
5
votes
1answer
852 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
488 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 ...