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
14 views

13 times 'zenity' with status Zombie

I have 13 times zenity with status Zombie in my system-monitor. Could there be any virus or what else could it be? I have read this: What are zombie processes? but I can't do anything with it ...
0
votes
1answer
21 views

Zenity and bash

I have a broblem with bash script. I want to go back to menu but have an error from terminal "unexpected end of file" #!/bin/bash users=$(awk -F'[/:]' '{if ($3 >= 1000 && $3 != 65534) ...
1
vote
0answers
11 views

Trying to pipe steamcmd output to yad

In order to run a server through steam I need to run this command from it's install directory, this works, and has worked for quite some time. ./srcds_run -game garrysmod +maxplayers $play ...
0
votes
1answer
29 views

creating a popup that covers the screen

so I want to create a pop-up that covers the whole screen I have already had a look at zenity and it doesn’t really work
0
votes
0answers
22 views

How could you password protect an application [duplicate]

How would you create A pop-up password dialogue using zenity (or other application) so that when a user tries to access a specified Applictaion it asks for a password
0
votes
0answers
23 views

Files selected using zenity --file-select are not added to “recents” shortcut

I'm using zenity to select input files for a lua script on the command-line. While using the GUI already saves time over the alternative of typing in really long filenames, I was hoping to save even ...
4
votes
2answers
118 views

Can a Zenity list display a string `--option`?

Is it possible to have a Zenity list-style menu show a code option like -r? I am trying to make a simple GUI for an FFMPEG bash script. This is just one prompt for selecting a framerate for a video. ...
3
votes
2answers
75 views

Simple Zenity script?

I am trying to make a simple graphical Zenity+Bash script that will list all the icon themes available in /usr/share/icons, then let the user select one and click "OK" to replace ...
0
votes
2answers
29 views

How to make a multistep command ask for inputs?

Sorry for the confusing title but here's what I want to do. I run this command quite often: w3m -dump http://www.example.com/file-to-save-as-text/ > ~/Desktop/saved-file.txt Is it possible to ...
1
vote
1answer
40 views

how to fix filenames with dash or space

I created a bash file, but when I run it to those files (or folders) which they have "space" or "-", my command doesn’t work! how to fix this problem. #!/bin/bash dpi=$(zenity --entry --text ...
0
votes
2answers
153 views

Building a dynamic zenity list using bash variable

I am attempting to build a zenity interface calling one of a bunch of scripts located in a specific folder. For this, I am relying on zenity --list. I want the list to have two columns: 1) script ...
0
votes
0answers
134 views

How to insert image in zenity?

I have tried --window-icon in zenity by giving the image path, but it is not working... The code I tried is zenity --window-icon "/home/pavan/Downloads/badge.png" --title "Search Box" --text "Type to ...
0
votes
1answer
128 views

What does this zenity mean when it says “Couldn't connect to accessibility bus”?

Context: Ubuntu 14.04 (trusty), 3.19.0-26-generic (#28~14.04.1-Ubuntu SMP Wed Aug 12 14:09:17 UTC 2015), Xorg 1.17.1 (13 May 2015 04:35:05AM), Toshiba Satellite L750 I am trying to write a script to ...
3
votes
3answers
270 views

Get variable from Zenity list generated from .csv file

I'm trying to get the value from zenity list. But it doesn't work. Some help would be nice :) If I remove the ans=$ I get the value from zenity in terminal like this: 10.33.54.13|10.33.54.13 But ...
1
vote
1answer
123 views

how to handle file names with spaces

I am developing a GUI search program. I need help to handle filenames with spaces. I just can't figure it out. Here is my code: #!/bin/bash USERNAME=$(whoami) INPUT=$(zenity --entry) updatedb ...
0
votes
1answer
276 views

Auto adjust width and height in zenity

Do we have an option in zenity to auto adjust the width and height of the results window instead of manually specifying the values of height & width ?
3
votes
1answer
718 views

youtube-dl file download progress with zenity progress bar

How to add youtube-dl file download progress percentage to zenity progress bar sample code (just an example, not a working one) #!/bin/sh ( progress=$(youtube-dl --extract-audio --audio-quality 0 ...
0
votes
1answer
400 views

Hiding terminal when executing zenity bash script by double click

Is there a way to hide terminal when a bash script for zenity is executed eg: szAnswer=$(zenity --entry --text "where are you?" --entry-text "at home"); echo $szAnswer I want to hide the terminal ...
0
votes
1answer
102 views

Fetching details using awk in zenity list

I am using youtube-dl to fetch videos and its format. this is my code youtube-dl -F https://www.youtube.com/watch?v=uvr1xiEaICU |awk 'NR > 5 { print}' | zenity --list --column "youtube" And ...
1
vote
0answers
83 views

Zenity (alike) File Browser with custom filesystem Root

I am creating ubuntu application which need to display file browser from command line, and request file selection from user. I am aware usage of zenity --file-selection --file-filter="MP3 Files | ...
7
votes
2answers
1k views

How to use zenity file selection

I am new to zenity and I am trying to make a simple script for loading a file using zenity --file-selection and the wc command to get the word count of that file. I have successfully made a form which ...
1
vote
0answers
100 views

Message says downloading wine-unity3d-installer (N/A MiB) appears, does not go away

A zenity message saying "downloading wine-unity3d-installer (N/A MiB)" will sometimes appear while I am doing something and just show a flashing download bar forever. I can force close it but a few ...
1
vote
0answers
49 views

Change content of list in app indicator made using cappind

I made a simple indicator using cappind script which is based on zenity - Webupd8 article Capind page I want to change the text of the list according to some condition.. Like, if the contents are - ...
0
votes
1answer
290 views

How to restore proper notification handling with gnome-session, Openbox, Cairo-dock?

I run Ubuntu 14.04 with gdm and gnome-session, but I disabled dash/metacity/unity and use Openbox and Cairo Dock. Last week, all was fine - notifications appeared in a transient dock popup. After ...
0
votes
1answer
641 views

Getting window-icon to work with Zenity

I am having a weird problem with Zenity. I've never used Zenity before, so this could be a mistake. If I type the command zenity --question --text=QUESTIONGOESHERE ...
2
votes
1answer
938 views

Every time I connect to the internet zenity says “downloading wine-unity3d-installer”

Every time I connect to the internet Zenity flashes that little popup for about a second (because the download is apparently 1 mb) a couple of times. First of all, why does it keep installing the same ...
-2
votes
1answer
1k views

Store the return string to a variable from zenity

I am using Zenity tool to pop-up an entry dialog box. But how can i store the value entered into the text box to a variable ? Now, the string is being printed onto the console itself. I want it to be ...
3
votes
2answers
478 views

Why does a bash-zenity script has that title on Unity Panel and that icon on Unity Launcher?

I have this small bash script which helps use Infinality font rendering options via a more user-friendly Zenity window: http://gnomefiles.org/content/show.php/Infinality+Style+Changer?content=161984 ...
20
votes
1answer
3k views

How can I create a wget GUI with multiple progress bars?

I'm writing my own script to download multiple items (simultaneously, one item per command) using wget and I need a progress bar. I currently utilize zenity --progress for my progress bars, but the ...
1
vote
1answer
650 views

Zenity from command line Linux installation

I have a command line installation of Linux, i.e. when I was installing it, I chose to install a command line version. I want to make use of zenity from the command line to popup dialog boxes etc. ...
3
votes
1answer
890 views

Confirm shutdown with Zenity?

I got this command which enables me to shutdown Ubuntu 13.10 directly from the keyboard (without needing to open a terminal and running something like sudo shutdown -h now): dbus-send --system ...
0
votes
1answer
875 views

math operations from array elements in bash script [closed]

Using Ubuntu 13.10, bash and zenity, I am building a simple checkbook utility. In the code below, the section with all the commented math commands are the ones that I have tried. There is also a ...
0
votes
1answer
274 views

Turn off display after n seconds in shell script

#!/bin/sh ( time=$( zenity --scale --min-value=0 --max-value=20 --text="Pls Select Time in(s)") ) && sleep $time && xset dpms force off I wanted to turn off display after n seconds, ...
2
votes
1answer
1k views

Is Zenity progress bar affecting variables

Hi guys I am currently trying to implement zenity progress bar to my while loop, however I noticed that my variable which are meant to be incremented did not increment. Here is a sample test script I ...
1
vote
2answers
696 views

Running a zenity script with if statements

I am having a problem writing a script for 'zenity.' My intention is to have a comment selected randomly from a list and then displayed on the screen for the user to see. To be honest, I would like ...
0
votes
2answers
746 views

Alternative to yad/Zenity for Unity

In Ubuntu 13.04 yad and Zenity notification icons aren't showed in Unity. I have written a script to use notification icon to alert me about lftp download progress. Is there any alternative that it ...
2
votes
2answers
2k views

Zenity progress bar and output

I wrote this little script: response=$(process ...) | zenity --progress --pulsate echo $response I want read the response of the process, whatever it is, and show a pulsating progress bar in the ...
1
vote
1answer
187 views

How to use change directory in zenity?

how to use cd command for change directory in zenity, my simple script like this #!/bin/bash a=`zenity --entry --entry-text="input directory name"` cd $a but, when cd [The cd (ChangeDirectory) ...
3
votes
0answers
123 views

insert $duration variable inside another line of code in a sh file

I found out about byzanz-record which can record your desktop and get the result as a gif, flash or other, I want to make a GUI for personal use but I can't seem to get it working up until now I only ...
1
vote
1answer
857 views

Zenity alternative for Bash scripts in package sources?

Zenity is a bit too limited for my use cases. What are the alternatives? It must be inside package sources, and it must be useable from within Bash scripts.
2
votes
1answer
710 views

Show a notification at login using pam_exec

This simple script will show a Zenity notification when the user logs in: case "$PAM_TYPE" in 'open_session' ) if [ "$PAM_SERVICE" = "lightdm" ] ; then DISPLAY=:0 sudo -u ...
4
votes
2answers
213 views

Looking for a customizable “Did you know…” dialog application

I want to deploy a "Did you know..." or "Tip of the day" application at the office. It should: Show a dialog at login time with a random tip. Obviously, provide some way to store my own tips. Be ...
0
votes
2answers
362 views

Thunderbird Zenity dialog

Whenever I get a new email in Thunderbird, zinity pops up with a modal dialog box: This is very anoying and when I'm away for some time and get back, I have to click OK/Cancel a dozen time to get ...
3
votes
2answers
1k views

zenity window on top

I would like the window produced by zenity to be configured so it is always on top. There does not appear to be an option to enable this. Can someone suggest a source change to the zenity code so that ...
4
votes
1answer
4k views

How do I create a popup banner before login with Lightdm?

When Ubuntu was using gnome I was able to create a popup banner like the banner below before the login screen using zenity in the /etc/gdm/Init/Default. The line of code would be like this: if [ -f ...
2
votes
1answer
648 views

Printing Checks from CLI or GUI

Looking for a program or a way to print onto my bank checks in Ubuntu. I don't want to use GNUCash or KMyMoney as those are bank register program's and it's too much work to open one of those each and ...
1
vote
2answers
125 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 ...