Questions tagged [zenity]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Why does Zenity list kernels to remove, which it cannot find?

I am trying to use Zenity to remove old kernels (disk space issue), as described by WinEunuuchs2Unix on Mar 11, 2017 (and follow-ons). Zenity lists kernels that it says can be removed. For example, ...
0
votes
1answer
175 views

18.04: Run zenity in background or not show the terminal

A .desktop file runs some dialog boxes using zenity (more) on an Ubuntu 18.04 system. I want just the zenity dialog boxes to come up, not the terminal. I've tried setting the Terminal tag to false ...
0
votes
1answer
259 views

Cancel buttons Zenity

So, I have this script: #!/bin/sh #InputBox1Test title=$(zenity --entry --text 'Type what you want your Notification Title to Say!' --title 'Notification') text=$(zenity --entry --text 'Type what ...
0
votes
2answers
170 views

I need help with zenity to list files

I have the command sudo find / -size +450M -exec ls -lhGSr {} \; to find and list files greater than 450M. I know how to display the output in zenity, but I'd like to select a path (any) in zenity ...
0
votes
1answer
86 views

Package to install bash script that needs root/sudo access

Is there a way to create a Snap/Snapcraft or Debian package that could install a bash script as an "application" with an icon in the Dock--specifically, one that needs to be run as root in order to ...
0
votes
0answers
45 views

zenity slow to display dialoge window, how can i speed up?

Zentiy takes ~10 seconds to display dialogue box using Xming, connecting from windows to Ubuntu 16 via psftp example where the dialouge box is closed within a second of opening script used to check ...
0
votes
1answer
338 views

How to put YAD form fields value into variable after submit?

How to put YAD form fields value into variable after submit? My script actually looks like this: #!/bin/bash default_jpg='/'; default_mp3='/'; default_resolution='1920:1080'; default_filename="/"; ...
4
votes
1answer
150 views

How do I get a Zenity feature in Yad?

I have the following twenty-six files in a folder: $ ls a.txt c.txt e.txt g.txt i.txt k.txt m.txt o.txt q.txt s.txt u.txt w.txt y.txt b.txt d.txt f.txt h.txt j.txt l.txt n.txt p....
2
votes
1answer
159 views

Zenity progress: no window

Bit of a noob question, I know... I want to batch convert my videos to h265, which I can do with the help of Zernity and ffmpeg, but I'm having a little problem with the progress bar, in that there ...
8
votes
2answers
2k views

Avoid showing cancel button on dialog

I'm using Kubuntu 18.04 with: $ zenity --version 3.28.1 I want to display a --list dialog with zenity, but I don't want to show the Cancel button (in fact I'm okay if there is no OK either). It ...
0
votes
1answer
41 views

How do I suppress Zenity dialog pop-up when starting Jupyter Notebook? [closed]

When I launch Jupyter Notebook from terminal, a Zenity notification window pops-up saying: Allow opening file? Allow snap "jupyter" to open file "/run/user/1000/snap.jupyter/jupyter/nbserver-5664-...
0
votes
2answers
144 views

It is possible to add password show in zenity linux

It is possible to make zenity dialog with password show button or something like this ?
3
votes
1answer
585 views

How to display a value with zenity?

I'm trying to calculate Euler's numb. but I'm having problems trying to display the result. This is what I have: #Using a switch an case "Euler's Number") szAnswer=$(zenity --info --text "Enter a ...
0
votes
1answer
352 views

zenity window is not shown when called from `at` command

Calling zenity command shows an alert window, as expected: zenity --info --text="test" But calling zenity with at does not show the alert window, at the specified time: echo "zenity --info --text=\"...
3
votes
1answer
383 views

Zenity: get selected filename without its path

I need zenity to put a selected filename into a variable without its path. What I have now is file_to_copy="$(zenity --file-selection --title='Select a File')" echo $file_to_copy then prints /home/...
1
vote
1answer
864 views

How to detect if the user has clicked on “Quit” in a zenity list

This is my code: while true; do choice=$(zenity --list --text "Users are listed below." --title "Result" --ok-label="Back to Menu" --cancel-label="Quit" --column=Users $(cut -d : -f 1 /etc/passwd)...
-1
votes
1answer
829 views

zenity --notification: additional button

I´ve got a question regarding zenity. What I want to do is display my total data usage of my web-stick for the current day in a message box. I found a solution using notify-send: set name ( vnstat --...
1
vote
1answer
721 views

Bash one-liner to display ALL `gsettings` in GUI dialog window

Recently I've been encountering many questions in Ask Ubuntu that require changing gsettings to solve the problem. For example this question: How to prevent shutdown when one of two batteries is empty?...
3
votes
1answer
2k views

Zenity multi-choice from keyboard

I was looking for a zenity script that would offer choice between multiple commands (logout options, programs). Looking at the script discussed here (that uses the --radiolist option) I have noticed ...
3
votes
1answer
185 views

Using wmctrl with zenity prompt causes budgie-wm segmentation fault [closed]

I'm attempting to write a bash script that switches between workspaces with some dialog prompts along the way. I'm running Ubuntu 17.04 with Budgie remix. When using wmctrl or zenity separately, they ...
3
votes
2answers
7k views

How to make a progress bar work in Zenity?

I am writing a simple basic bash script (starting with #! /bin/bash, file format is .sh) and I am trying to make a progress bar work: #!/bin/bash echo "You are running in LXDE mode. Answer 'yes' or ...
0
votes
1answer
2k views

Zenity remote display text issue

When i run command: ssh user@host "zenity --warning --width=500 --no-wrap --text="Your $VPN is not connected. Please connect it or inform to engineer" --display=:0" If I use single quote then it ...
5
votes
1answer
5k views

Zenity question - how can I use user input?

I want to make a zenity question that goes further depending on the answer you choose. The question in my script is: zenity --question --text="Would you like to participate in a little form?" _ ...
6
votes
3answers
5k views

How to make zenity “transient parent” warning disappear permanently [duplicate]

Zenity annoys me by always displaying the warning in terminal: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. Apparently I'm not the only one: linuxquestions.org - ...
4
votes
1answer
2k views

Bash template to use zenity (or yad) to insert / edit / delete records in a file or database

I’m looking for a bash template that uses zenity or yad to maintain a list of records. The template could be a shopping check list with print option or it could be a list of servers to monitor ping ...
4
votes
2answers
2k views

How to edit YAD question labels (example)?

YAD is a Zenity fork. I have this yad script: #!/bin/bash yad --text="Execute the file? (press 'Cancel' to open in text editor)" case $? in 0)thunar "$1" ;; 1)gedit $1 ;; esac ...
1
vote
2answers
2k views

Zenity script: dismiss window with close (x) button or Esc

Following this solution I have a zenity script to ask me what to do when clicking an executable script in Thunar or a desktop file in Pantheon Files: #!/bin/bash zenity --question --text="What ...
4
votes
2answers
663 views

Using Zenity to maintain configuration file

I need to setup a configuration file in Bash and believe Zenity is the best method but am having problems finding a link using google with a suitable example. So far my code looks like this: #!/bin/...
1
vote
1answer
143 views

Enter GPG passphrase with Zenity GUI enviroment

I am working about a Zenity GUI based GPG application. But I have a problem with that. GPG ask passphrase for encryption in terminal with this command gpg -c $FILE. However users must enter their ...
2
votes
2answers
5k views

pipe stdout to zenity notification

I would like to pipe the stdout of shutdown -P +60 to zenity --notification. But this does not work: sudo shutdown -P +60 | zenity --notification
0
votes
1answer
949 views

Get path to folder using zenity [duplicate]

I found the zenity file path dialog but I how can I get the path to a folder? Any help is appreciated.
4
votes
1answer
8k views

How do i Create a Zenity form with a check list in it

I am trying to create a small GUI in Zenity, for it i a few text inputs coupled with a checklist. It seems however the only list i can add to a form is a list of fixed values, and not one with ...
0
votes
0answers
43 views

Detect cancelling zenity when script is run as sudo [duplicate]

I use Ubuntu 14.04 and have a simple script: OUTPUT=$(zenity --forms\ --title="new"\ --text="Add new"\ --separator="," \ --add-entry="path"\ ) accepted=$? if ((accepted != 0)); then echo "...
2
votes
0answers
71 views

How to resume zenity list after picking choice?

I have a zenity list whose entries call different scripts. Among them there is a scripts which concatenates all the results from other scripts. I would like to recall this script so I can save what I ...
20
votes
4answers
33k views

error message when running zenity under 16.04: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged

Under ubuntu 16.04 I get the following message Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged when I open zenity with the command zenity --text-info --filename=&...
0
votes
1answer
874 views

Zenity list dialog from variables

I have a bash script which looks like this: column_names="--column=\"TargetDir\" --column=\"TargetPage_ID\" --column=\"TargetTitle\"" row="\"Target Dir 1\" 1 \"TargetTitle 1\"" echo "column_name is: ...
2
votes
0answers
421 views

Zenity windows are no longer the same size

Lately, I have been using zenity with a progress window, and opening questions with the same size on top of the progress window, to hide it. With Ubuntu 14.04, they were exactly the same size, and it ...
2
votes
1answer
787 views

zenity list in forms dialog is not viewable

What I am trying to do is this: zenity --forms --add-list my_list --list-values="one|two|three" What I get is this: That white line in the center is the list , which for some reason has no width ...
0
votes
0answers
87 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
279 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 ...
0
votes
1answer
224 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
118 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
508 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
72 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
171 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
194 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
884 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
1
vote
0answers
32 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
3
votes
2answers
682 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. ...
4
votes
2answers
560 views

Simple Zenity script - to select icon?

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="...