Questions tagged [zenity]

Zenity is free software and a cross-platform program that allows the execution of GTK+ dialog boxes in command-line and shell scripts.

198 questions
2
votes
1 answer

R pop-up boxes not working when run in terminal

I am using the svDialogs (an R wrapper library for zenity) to create GUI pop-up boxes, and this works fine when I run the code through either R studio, or from an R terminal session (running Ubuntu 16.04). A minimal example…
owen88
  • 454
  • 3
  • 12
2
votes
2 answers

how to use yad in bash scripting?

so i am writing a small bash script to automate a few tasks...and i have stumbled on to a issue here.. my problem is val=$ ( yad --center --width=300 --height=100 --title "Alert" --image "dialog-question" --buttons-layout=center --text "Search…
2
votes
1 answer

Proper way to store the return value of a piped function in bash

I have an array of functions which I call inside a loop in bash. Whenever one of these functions returns an error, I keep track of it storing that function's name inside an error array to show to the user. This is the current working…
dvilela
  • 1,200
  • 12
  • 29
2
votes
0 answers

Any reason that zenity wouldn't bring a dialog into focus?

I am using Zenity 3.10.2 and any time I use Zenity, regardless of dialog type, the dialog it brings up has focus. i.e. I can straight away press "Enter" straight away and proceed. (I need this ability for automation) However, there is one exception…
mgibson
  • 6,103
  • 4
  • 34
  • 49
2
votes
1 answer

Populating a zenity list with results from mysql

I'm doing a small project using BASH for a "Phone Book". It stores the data in a mysql database and uses a temporary file to work with the Selects. I'm using zenity visual interface, so I want to display the data stored in the database using the…
2
votes
2 answers

dynamic yad lists possible?

I wonder if anyone more familiar with yad (yet another dialogue) knows if dynamic lists are possible and if so how might one be implemented using the contents of a bash array assigning FALSE to each list item? I have a script that manages multiple…
digiscripter
  • 309
  • 2
  • 6
2
votes
1 answer

How to translate language strings - zenity command-line utility

I am using zenity utility in my shell scripts on ubuntu for displaying GUI dialogs. I wanted to know how to achieve language translations when system locale is changed. zenity --question --title="" --text="Hello World. How was the day today..Good?"…
Sandeep
  • 1,237
  • 1
  • 14
  • 29
2
votes
1 answer

Using Zenity in a root incron job to display message to currently logged in user

Working on a script to auto-upload files that are placed in a directory, and then display a link to them to the currently logged in user. Users of the machine will be authenticated via LDAP. The directory that is being watched by incron is outside…
tfmm
  • 21
  • 3
2
votes
3 answers

Zenity - different returned values

On "Linux Mint 16 Petra" i type this command : zenity --list --column "test" a b c I select the item 'a', then the returnning value is randomly a or a|a How do you explain this ? is it a zenity bug ? How to get only 'a' ? Regards.
JeffProd
  • 3,088
  • 1
  • 19
  • 38
2
votes
1 answer

Zenity with iPython?

Is there anything like Zenity built into iPython? If not, what would be the best way to approach creating Zenity-like shell scripts with iPython? Or should I just use regular Python and make a small GUI application (e.g., with PyQt)? I'm trying…
MountainX
  • 6,217
  • 8
  • 52
  • 83
1
vote
4 answers

Shell Script with Zenity

Using Zenity is possible to add buttons,change fonts ,anything besides default options? If not,there's another dialog for sh that allows more customizing?
Hai
  • 4,764
  • 8
  • 29
  • 26
1
vote
1 answer

How to feed a variable into a zenity --text-info box?

For some reason the zenity --text box won't display the text string. Likely because it is too long. I'm hoping a --text-info box will do the trick. Is there anyway to get the --filename= param to take a string input rather than a file…
Emily
  • 2,129
  • 3
  • 18
  • 43
1
vote
1 answer

Zenity: How To Get List Selection From Key/Value Associative Array?

How do I take the key/values from an associative array and display them in a Zenity list dialog? Example: #!/bin/bash get_final_bookmarks_choice(){ if [ ${#matched_bookmarks[@]} -eq 1 ]; then # open_bookmarks_command return …
Emily
  • 2,129
  • 3
  • 18
  • 43
1
vote
1 answer

Bash - Zenity list to display fields from two arrays

I wanted to make a zenity list that takes the fields for one column from one list and the fields for the other column from another list menu=("option1" "option2" "option3") desc=("description1" "description2" "description3") ans=`zenity --list…
Kulpas
  • 167
  • 1
  • 9
1
vote
1 answer

Zenity Not Showing Notification When Ran As Root

Forgive my stupidity but I'm trying to make a script that has to been ran as root to print a notification but it won't work for some reason?? It works just fine when ran without Sudo. If I try to run it with sudo it gives me this error?? **…
Kevin Char
  • 65
  • 6
1 2
3
13 14