Questions tagged [zenity]
Zenity is a tool that will display Gtk+ dialog boxes from the command line and through shell scripts. It is a rewrite of gdialog, the GNOME port of dialog.
76 questions
3
votes
1
answer
287
views
zenity-like tool to get multi-element forms with shell scripts?
I like to use zenity to prompt the user for input in in shell scripts, or display information to them - those scripts run on a desktop, and might be minimized or stacked behind other windows, so ...
0
votes
0
answers
42
views
Zenity Access Keys
The Gnome Help zenity manual explains:
An access key is a key that enables you to perform an action from the keyboard rather than use the mouse to choose a command from a menu or dialog. Each access ...
1
vote
1
answer
201
views
Allow a sudo sub process to update Zenity running as original user
A script run by user 'staffer' runs zenity --progress.
It then calls sudo -u adminBod adminScript (and the STDOUT and STDERR are collected to logger)
I want adminScript which is running as adminBod to ...
1
vote
1
answer
314
views
Check which entry is empty with yad or zenity
I'm trying to create an array of four elements using a form consisting of 4 entries:
new_prop=($(zenity --forms --title="my-script" --text="Insert the values" --separator=" &...
1
vote
1
answer
331
views
Calculate checksum for whole content of a device and add a progress bar
I want to make a shell script, that lets the user select a mounted device and calculate a checksum for the whole data on this device. I need the checksum to test if the device has been manipulated by ...
3
votes
2
answers
792
views
Wait until md5sum command is completed
#!/bin/bash
cd /path-to-directory
md5=$(find . -type f -exec md5sum {} \; | sort -k 2 | md5sum)
zenity --info \
--title= "Calculated checksum" \
--text= "$md5"
The process of a ...
1
vote
1
answer
846
views
Zenity Progress Bar
I made a shell script which uses this command to calculate a sha256 checksum recursive for a directory for example /run/media/$USER/directory:
find . -type f -exec sha256sum {} \; | sort -k 2 | ...
1
vote
0
answers
621
views
Zenity checklist from file
I created a checklist and I want to insert data from a file in a specific order.
The data comes from a terminal command in my bash script:
data=$(lsblk -o name,size,model --nodeps >> /data.txt
...
0
votes
2
answers
359
views
Zenity select disk/volume
is it possible to select a disk/volume with zenity instead of a single file?
I know there is the zenity --file-selection command, but can you also select for example /dev/sda1 ?
Thanks for your time!
3
votes
1
answer
368
views
zenity failing in crontab but working in shell
I'm trying to run a script that calls zenity from a crontab and it fails. The script works well from the command line.
I do pass the DISPLAY in the crontab:
* * * * * DISPLAY=:1 bin/myscript.sh > /...
-2
votes
1
answer
143
views
no slashes needed in date string provided via zenity
By using the zenity utility, select the date from the calendar; the output is 19/09/2022. I want to remove slashes between the parts of the date to make it 19092022 and store it in a variable.
1
vote
2
answers
959
views
Zenity (or alternative) with custom file selector
When I use zenity and type --file-selection, if spawns the default GTK file selector. The problem with that is, of course, the lack of image thumbnails. Considering that I want to make an image ...
0
votes
1
answer
177
views
Show stdout and stderr in Zenith
I am trying to install .deb file by right clicking on it in Nemo.
My Nemo Action Looks like:
[Nemo Action]
Name=Install Deb File
Comment=Install %F
Exec=<scripts/install_deb_file.sh %F>
Icon-...
0
votes
1
answer
893
views
Zenity File Selection - Change Display Options?
Zenity version 3.22 (Debian Stretch).
ls -a foobar
. .. directory foo .foo
zenity --file-selection --filename=/tmp/foobar/
yields (after a right click):
I know that I can just click on the Show ...
1
vote
0
answers
1k
views
Unix PAM module fails on login/lock screen - Permission denied - exit code 13
How it works?
I'm back with yet another issue I can't figure out by myself. Basically what I have is 2 factor authentication (2FA) module based on Python PAM and with NFC card reader. Once user is ...