Zenity is a tool that will display Gtk+ dialog boxes from the command line and through shell scripts. It is a rewrite of gdialog, the GNOME port of dialog.

learn more… | top users | synonyms

0
votes
1answer
14 views

How does a Zenity progress dialog's cancel button function?

While trying to make the Cancel button on a Zenity --progress window work for my scripts I've realized I don't understand how the Cancel button works at all in the example given on the Zenity Manual ...
1
vote
1answer
21 views

writing output of xbacklight -get to a variable in a bash script

I have a little script that lets me set the display brightness #!/bin/sh VALUE=$(zenity --scale --text="Select Display brightness" --value=50 --title "Helligkeit anpassen"); xbacklight -set $VALUE; ...
1
vote
2answers
25 views

Listing negative numbers in zenity --list

$ zenity --list --column 'Numbers' '-3' This option is not available. Please see --help for all possible usages. $ zenity --list --column 'Numbers' -- '-3' So obviously zenity is interpreting the ...
0
votes
2answers
81 views

awk output has extra carriage returns and is buffered

My ultimate goal is to get a zenity progress dialog to work while encoding with fdkaac. I first started with some code that is working when I encode "aa.wav" to "aa.mp3" with lame. This results in a ...
1
vote
1answer
212 views

Creating a Wireless Network Management GUI workaround

I just installed Alpine linux, and it all went as smoothly as i'd hoped, except for the wireless networking (and XFCE's Power button and reboot buttons being greyed out, but that's irrelevant here). ...
0
votes
0answers
32 views

Zenity, how to manage cryptsetup prompt?

With Zenity, I display a progressBar and install/config many stuff on a Linux Mint (Debian) computer. I had to avoid any prompt. But one step prompts Enter a passphrase:, this is cryptsetup ...
0
votes
1answer
25 views

Setting arguments from a text file does not work

Here is my code. #!/bin/bash set -- $(cat /home/jeevan/tempzen1.txt) zenity "$@" file tempzen1.txt contains : --list --title FILE-SELECTOR --column serialno. --column file --width 1000 ...
1
vote
2answers
71 views

Something wrong with spaces in zenity trying in a script [duplicate]

While this is directly executed in terminal it works fine zenity --info --text "pure info" --title "get info" But this script doen't work what's wrong? !/bin/bash ZEN="--info --text \"pure info\" ...
1
vote
1answer
536 views

zenity --notification: “Do default action” button

If I use the example usage command for notifications from the Zenity documentation site: zenity --notification\ --window-icon="info" \ --text="There are system updates necessary!" I get a ...
0
votes
2answers
628 views

YAD and Zenity - Input Start/Stop Times to Trim Video

I have a bash script and a php script that function in concert to trim audio/video files using start/stop times. PHP script: <?php // Create datetime objcects $dt1 = new DateTime($argv[1]); $dt2 ...
5
votes
1answer
125 views

How do I safely get multiple filenames from Zenity?

Zenity can be used to create a file selection dialog and select multiple paths. The separator for paths is specified using the --separator option. Therefore we can't use NUL, the only safe character ...
0
votes
1answer
313 views

csv file with multiple columns to zenity

How could I output the contents of a .csv file to a Zenity list. The file has multiple rows and columns and the rows are no fixed numbers. I would also like it so that when the user double clicks, on ...
0
votes
0answers
153 views

Why this zenity command is not working?

zenity --warning --text="Error Occurred" --display=:0.0 I executed the above command it throwing error, Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key (zenity:10481): ...
1
vote
1answer
242 views

call a script if a zenity window is minimized, resized or moved

I would like to add an event-catcher, if my the zenity window gets minimized, resized or moved. I already call a script if the window is closed or the button is pressed in my typebreak script But I ...
3
votes
2answers
955 views

Keep a Zenity dialog box always-on-top in foreground

Is there a way to detect that a zenty dialog is loosing focus? I would like to hold it in the foreground, unless the user presses ESC. This is the script where I want to add this: ...
3
votes
0answers
223 views

Securing a script a little more

I currently have the following script which works fine: #!/bin/sh user="$(zenity --entry --title="Username" --text="Username")" pass="$(zenity --password --title="Password" --text="Password")" ...
0
votes
1answer
369 views

Reusing user input in a script

I have the following script which works: #!/bin/bash xfreerdp /cert-ignore /f /v:farm.company.com /d:company.com /g:rds.company.com /u:$(zenity --entry --title="Username" --text="Username") ...
3
votes
2answers
410 views

GTK: Specify application foreground and background color on command line

In the old days, all X11 applications would take standard command-line arguments to specify things like foreground/background color. Is there a way to do that today for GTK applications? In particular ...
2
votes
1answer
727 views

zenity doesn't display all list with variables

Friends, I need a hand, I am making a search and install PPA script for Ubuntu. This script with zenity works 80%, the problem is when this script searches; displays only the first line. I need all ...
3
votes
1answer
374 views

Change script to use whiptail instead of zenity

I'm having difficulty converting some zenity based script to use whiptail instead. The working script looks something like this: #!/bin/bash xfreerdp /v:farm.company.com \ /d:company.com \ ...
1
vote
1answer
1k views

How to apply pipe zenity/yad progress bar?

I need display a progress bar with zenity or yad with pacaur/pacman or yaourt in Arch Linux/Manjaro, the problem is I can't capture the actual process with pacaur or other, only with pkcon, but ...
2
votes
2answers
468 views

Zenity refuses to work in background

I'm trying to create a background bash script which creates a popup in certain circumstances, however, my code only works when run manually in a terminal (e.g. not in the background). I've tried ...
3
votes
2answers
1k views

How do I create a dialog with multiple text fields using zenity?

I want to crate a GUI for some command line programs and I need to get info from multiple text fields e.g. 'Username', 'Password' and a checkbox 'Sign automatically?'. I need to set particular ...
1
vote
1answer
236 views

why do I get no output from zenity in shell script under gnome-schedule

I am using Fedora Linux 12, and intend to update to an up-to-date version soon. To prepare for this I have made a full backup on an external drive. I want to keep this backup up to date, using rsync, ...
1
vote
2answers
360 views

What's wrong with my zenity dialog? selector is not extending vertically

zenity list dialog looks different after a system upgrade, %> zenity --text "Select" --list --column="Profile" --list a b c Any idea on the extra space in the dialog? The selector should extend ...
1
vote
2answers
114 views

GUI message box in SLES 11

I am using SLES 11 and I often run long processes. I am looking for a method to flash an alert box or a message box when the work is done. In Ubuntu there is zenity which can flash an info box. I am ...
3
votes
4answers
5k views

How to display a (zenity/GUI) dialog to the user after a root cron task has completed

I have a simple periodic cron task that must run as root. I want to use Zenity (or similar) to display a GUI informational dialog to user 1000 (or logged in user or all users) when the cron task ...
0
votes
4answers
4k views

Zenity dialog windows have excessive height and cannot be resized. Bug workaround anyone?

I'm trying to do some things in zenity, and it's been driving me bonkers. To illustrate my problem, try running this: zenity --info --text "Hello there friends." Simple enough right. Now try this: ...
2
votes
1answer
499 views

Make message box of zenity scalable?

When output contains lots of lines, zenity --info --text doesn't make it scale-able, and zenity --text-info only accept output from a file. What can I do now? Maybe other zenity like utility can ...
2
votes
1answer
1k views

Terminate script using zenity progress bar

(GNOME2, Ubuntu 10.04 LTS) I've made a nautilus script, so that if I have a directory full of various codecs, then I just need to right click in that folder -> Scripts -> THISSCRIPT.txt, then presto, ...
2
votes
2answers
2k views

How to pass data outside process for zenity progress?

Usually this would be a question about how to pass data from a subprocess to a main process, but maybe zenity has some extra quirks so please focus on zenity. Example: #!/bin/sh ( echo "10" ; sleep ...
1
vote
1answer
819 views

Escape text for further passing to zenity

I am going to show an error window using zenity: /usr/bin/zenity --error --text="my error message" The error text to pass is obtained as output from another application. This output may contain ...
4
votes
1answer
1k views

dialog or zenity?

I am working on a project. I have two options for the GUI part. Either use dialog or zenity. I never used any of these tools before. I have to learn one of them. Suggest me which one should I learn ...
3
votes
2answers
1k views

Why is piped input okay to zenity, but <file malfunctions?

My question is as simple as what the zenity --text args say in the example... but what is causing this 100% CPU grab by the redirection? ...(and by the way, is this particular usage of < actually ...