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
0answers
22 views

Script using zenity and ghostscript to compress PDF files modification

I need help to change the script I have to compress PDF files using Thunar file manager custom actions. The script runs well compressing one by one file, I want to make changes that all PDF files I ...
0
votes
0answers
16 views

gdialog does not allow entering or double clicking

The thing is, I have had pretty hard times with gdialog recently. Let's demonstrate the problem first with this bash code sample: #!/bin/bash source ./Functionlib temp1=$(mktemp -t tfile.XXXXXX) ...
0
votes
2answers
47 views

ctmconv, zenity and filenames with spaces

I'm making a little conversion script in Zenity, but have noticed that ctmconv won't allow spaces in a filename. Can I get rid of spaces in the input filename? #!/bin/bash cd ~/Desktop file="$(zenity ...
1
vote
1answer
70 views

Change filetype using zenity

Having zero experience with scripting of any sort, I apologise if this question is too simple to be allowed here. I have discovered zenity, which I think is very useful as my memory is hopeless, so ...
1
vote
1answer
24 views

Get exit status from Pipe contained in brackets

How do I get the exit status of a command in a pipe contained in brackets: (bzcat File_Here | pv -n --size "Size_in_Bytes" | dd of=/dev/sdX) 2>&1 | zenity --title="SD Utility - Write" --...
1
vote
0answers
34 views

Using zenity progress bar with bzcat to dd copy

I know there are ways to add a progress bar to dd, but I can't seem to get anything to work with my specific situation. Here is what I have so far: bzcat /file/path/goes/here.dd.bz2 | pv -n | dd of=/...
0
votes
1answer
18 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
34 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
24 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
49 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
29 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
148 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
101 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 gtk-icon-theme-name="...
0
votes
2answers
30 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
43 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
184 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 ...
1
vote
0answers
206 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
164 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
323 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
144 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
445 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
898 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
537 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
114 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
92 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
113 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
50 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
305 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
773 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 --window-icon=/some/path/to/64x64/....
2
votes
1answer
1k 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
2k 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
508 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
699 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. I'...
3
votes
1answer
998 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
888 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
278 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
741 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
784 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
194 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
126 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
908 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
737 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
214 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
378 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 ...