Zenity is free software and a cross-platform program that allows the execution of GTK+ dialog boxes in command-line and shell scripts.
Questions tagged [zenity]
198 questions
0
votes
1 answer
Flow Control and Return Values in a BashScript
I'm quite new to bash scripting and i've been working on a small bash file that can do a few things for me. First of all, i'm calling this from a C function using system() and i'd like the script to return a value (1 for error, 0 for OK). Is this…

BlueMoon93
- 2,910
- 22
- 39
0
votes
1 answer
How do I mark only one selection as TRUE in a dynamic zenity radiolist?
This is the code I have at the moment - it finds all files that have the file extension .sv and lists them in a zenity radiolist, however, none of the items are selected. Of course, if I change awk '{print "FALSE\n"$0}' to awk '{print "TRUE\n"$0}'…

stellarossa
- 1,730
- 1
- 18
- 29
0
votes
2 answers
Zenity not working in python script with crontab
I have a python script in which I have used Zenity to display some notification. The code snippet is as follows:
if message_list:
pretty_print(message_list)
os.system("/usr/bin/zenity --notification --text='You have unread messages'")
When…

nishantsingh
- 4,537
- 5
- 25
- 51
0
votes
1 answer
How can I store edited text file using bash?
This is my code:
Edit_Record() {
zenity --width=600 --height=300 --text-info --title="Records" --filename=$FILE --editable
if [ "$?" = 0 ]; then
kdialog --title "Saving the Data" --warningyesnocancel "Do you want to save the…

Furabells
- 1
- 2
0
votes
1 answer
Searching text string in file & replacing it
There is a file in my home directory named conkyrc now this controls my whole of conky setup & there is a nice internet speed meter on my desktop but the problem is that my OS is on a portable drive that is connected to various different places…

nightcrawler
- 275
- 5
- 16
0
votes
1 answer
CocoaDialog text box displaying first line
I'm trying to add the output of a script to a CocoaDialog textbox - problem is - it's only printing the first line....
For example - Please see below:
$ cat TEST.txt
i
am
legend
$ /Applications/CocoaDialog.app/Contents/MacOS/CocoaDialog textbox…

bsmoo
- 949
- 4
- 10
- 23
0
votes
2 answers
when linux system calls scripts some commands don't work ( cron / if-up.d )
Hi I'm trying to run a script that calls xclip in order to have a string ready to paste when i connect to the internet.
I have a script /etc/network/if-up.d/script that does execute when connecting (i make him post a date in a file succesfuly ) but…

Lau Llobet
- 577
- 7
- 21
0
votes
4 answers
Zenity entry and sudo -S not working properly without shell
I have problem with zenity entry and sudo -S.
I am doing something like this:
zenity --entry --title 'title' --text 'text' --hide-text | sudo -S pm-suspend
If I run this in shell, it's working. But I put it into file and I am launching this script…

Blaskovic
- 366
- 4
- 20
0
votes
1 answer
zenity throws glibc error
I have been trying use zenity with standard re-direction in a shell script, something like
for i in $(seq 1 10); do echo $i; done | zenity --list --column ="Number"
But on the command line this works , but throws the following…

arun nath
- 773
- 1
- 6
- 11
0
votes
2 answers
Shell script statements not running one after one
I wrote a shell script that calls some other shell scripts in a new terminal window. It was working fine on my computer. its like this
#!/bin/sh
gnome-terminal -e "sh one.sh"
zenity --info --text "exed one"
gnome-terminal -e "sh 2.sh"
zenity --info…

Xander
- 1,652
- 2
- 15
- 20
-1
votes
1 answer
Lua script how to invoke/call zenity or notify-send?
I'm a beginner in lua
OS: Manjaro XFCE
If I run from terminal desktop notification with notify-send or zenity it works.
for instance:
notify-send -t 4000 'Displays for 4 secs' "understood!!"
However, I can make it work from a lua…

user2718593
- 111
- 8
-1
votes
1 answer
How to close zenity window by press on Cancel button?
I have until loop and I can't get it how to break the loop when I click Cancel button? My until loop looks like this:
until [[ "$VAR" == "End" && **** ]]; do
...
The problem is if I want to close the window I have to click…

Kawson
- 138
- 1
- 10
-1
votes
1 answer
How do I make ```zenity --password``` input into a variable?
How do I make zenity --password input into a variable?
I'm using zenity --password to get input from the user and I'm trying to save it as a variable.
Here are some commands I've tried:
var=${zenity --password};
zenity var=--password
var=zenity…

Random Person
- 9
- 5
-1
votes
2 answers
how to reuse a zenity dialog?
Is possible to reuse a zenity dialog? A list for example.
Assign it to a variable it gets the value of the selected item. So when use the variable I just get the selected item' s value.

dancer_69
- 331
- 2
- 6
- 20
-1
votes
1 answer
How to use command "at" in shell to call zenity in ubuntu
I am trying to write a shell script to remind an user. I want to show dialog at a specific time.
I use zenity to show the dialog message
Here is my script
#!bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export…

rj487
- 4,476
- 6
- 47
- 88