kdialog
Show KDE dialog boxes from within shell scripts. More information: https://develop.kde.org/docs/administration/kdialog/.
- Open a dialog box displaying a specific message:
kdialog --msgbox "" ""
- Open a question dialog with a
yesandnobutton, returning0and1, respectively:
kdialog --yesno ""
- Open a warning dialog with a
yes,no, andcancelbutton, returning0,1, or2respectively:
kdialog --warningyesnocancel ""
- Open an input dialog box and print the input to
stdoutwhenOKis pressed:
kdialog --inputbox "" ""
- Open a dialog to prompt for a specific password and print it to
stdout:
kdialog --password ""
- Open a dialog containing a specific dropdown menu and print the selected item to
stdout:
kdialog --combobox "" "" "" ""
- Open a file chooser dialog and print the selected file's path to
stdout:
kdialog --getopenfilename
- Open a progressbar dialog and print a D-Bus reference for communication to
stdout:
kdialog --progressbar ""
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
