LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kdialog

displays KDE dialog boxes from shell scripts, enabling graphical user

TLDR

Display message box
$ kdialog --msgbox "message"
copy
Show yes/no question dialog
$ kdialog --yesno "message"
copy
Show warning with yes/no/cancel
$ kdialog --warningyesnocancel "message"
copy
Show input dialog
$ kdialog --inputbox "message" "default"
copy
Show password input dialog
$ kdialog --password "message"
copy
Show combo box dropdown
$ kdialog --combobox "message" "item1" "item2" "item3"
copy
Open file chooser dialog
$ kdialog --getopenfilename
copy
Show progress bar dialog
$ kdialog --progressbar "message"
copy

SYNOPSIS

kdialog [options] [arguments]

DESCRIPTION

kdialog displays KDE dialog boxes from shell scripts, enabling graphical user interaction in command-line scripts. It provides various dialog types including message boxes, input dialogs, file choosers, and progress bars.

PARAMETERS

--msgbox TEXT

Display a message box with OK button
--yesno TEXT
Display yes/no dialog; returns 0 for yes, 1 for no
--yesnocancel TEXT
Display yes/no/cancel dialog; returns 0, 1, or 2
--warningyesno TEXT
Display warning with yes/no buttons
--warningyesnocancel TEXT
Display warning with yes/no/cancel buttons
--inputbox TEXT [DEFAULT]
Display input dialog; prints input to stdout
--password TEXT
Display password input dialog
--combobox TEXT ITEM...
Display dropdown selection dialog
--getopenfilename [DIR] [FILTER]
Display file open dialog
--getsavefilename [DIR] [FILTER]
Display file save dialog
--getexistingdirectory [DIR]
Display directory selection dialog
--progressbar TEXT [TOTAL]
Display progress bar; returns D-Bus reference
--title TEXT
Set dialog window title
--icon ICON
Set dialog icon

INSTALL

sudo apt install kdialog
copy
sudo dnf install kdialog
copy
sudo pacman -S kdialog
copy
sudo apk add kdialog
copy
sudo zypper install kdialog
copy

CAVEATS

kdialog requires a running KDE/Qt environment. Exit codes vary by dialog type; check return values for user selections. Progress bars return D-Bus references for updating progress from scripts.

HISTORY

kdialog is part of the KDE base applications, providing script access to KDE's native dialog system. It is the KDE equivalent of zenity for GTK environments.

SEE ALSO

zenity(1), dialog(1), whiptail(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid