From 2eefbce0c105224f0970f1529fa85978d1d1998c Mon Sep 17 00:00:00 2001 From: marchersimon <50295997+marchersimon@users.noreply.github.com> Date: Tue, 3 May 2022 23:09:25 +0200 Subject: [PATCH] kdialog: add page (#8071) --- pages/linux/kdialog.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/linux/kdialog.md diff --git a/pages/linux/kdialog.md b/pages/linux/kdialog.md new file mode 100644 index 0000000000..350117804b --- /dev/null +++ b/pages/linux/kdialog.md @@ -0,0 +1,36 @@ +# kdialog + +> Show KDE dialog boxes from within shell scripts. +> More information: . + +- Open a dialog box displaying a specific message: + +`kdialog --msgbox "{{message}}" "{{optional_detailed_message}}"` + +- Open a question dialog with a `yes` and `no` button, returning `0` and `1`, respectively: + +`kdialog --yesno "{{message}}"` + +- Open a warning dialog with a `yes`, `no`, and `cancel` button, returning `0`, `1`, or `2` respectively: + +`kdialog --warningyesnocancel "{{message}}"` + +- Open an input dialog box and print the input to stdout when `OK` is pressed: + +`kdialog --inputbox "{{message}}" "{{optional_default_text}}"` + +- Open a dialog to prompt for a specific password and print it to stdout: + +`kdialog --password "{{message}}"` + +- Open a dialog containing a specific dropdown menu and print the selected item to stdout: + +`kdialog --combobx "{{message}}" "{{item1}}" "{{item2}}" "{{...}}"` + +- Open a file chooser dialog and print the selected file's path to stdout: + +`kdialog --getopenfilename` + +- Open a progressbar dialog and print a DBUS reference for communication to stdout: + +`kdialog --progressbar "{{message}}"`